diff --git a/shared/featureconfig/config.go b/shared/featureconfig/config.go index c2a658fd3f97..16445760aa51 100644 --- a/shared/featureconfig/config.go +++ b/shared/featureconfig/config.go @@ -136,7 +136,7 @@ func ConfigureBeaconChain(ctx *cli.Context) { params.UseOnyxNetworkConfig() cfg.OnyxTestnet = true } - if ctx.Bool(spadinaTestnet.Name) { + if ctx.Bool(SpadinaTestnet.Name) { log.Warn("Running Node on Spadina Testnet") params.UseSpadinaConfig() params.UseSpadinaNetworkConfig() @@ -309,7 +309,7 @@ func ConfigureValidator(ctx *cli.Context) { params.UseOnyxNetworkConfig() cfg.OnyxTestnet = true } - if ctx.Bool(spadinaTestnet.Name) { + if ctx.Bool(SpadinaTestnet.Name) { log.Warn("Running Node on Spadina Testnet") params.UseSpadinaConfig() params.UseSpadinaNetworkConfig() diff --git a/shared/featureconfig/flags.go b/shared/featureconfig/flags.go index f07b18faecfc..33a6a639e6a4 100644 --- a/shared/featureconfig/flags.go +++ b/shared/featureconfig/flags.go @@ -15,7 +15,8 @@ var ( Name: "onyx", Usage: "This defines the flag through which we can run on the Onyx Prysm Testnet", } - spadinaTestnet = &cli.BoolFlag{ + // SpadinaTestnet flag for the multiclient eth2 devnet. + SpadinaTestnet = &cli.BoolFlag{ Name: "spadina", Usage: "This defines the flag through which we can run on the Spadina Multiclient Testnet", } @@ -656,7 +657,7 @@ var ValidatorFlags = append(deprecatedFlags, []cli.Flag{ waitForSyncedFlag, AltonaTestnet, OnyxTestnet, - spadinaTestnet, + SpadinaTestnet, disableAccountsV2, enableBlst, }...) @@ -697,7 +698,7 @@ var BeaconChainFlags = append(deprecatedFlags, []cli.Flag{ disableNewBeaconStateLocks, AltonaTestnet, OnyxTestnet, - spadinaTestnet, + SpadinaTestnet, disableBatchBlockVerify, initSyncVerbose, disableFinalizedDepositsCache, diff --git a/validator/accounts/v2/cmd_accounts.go b/validator/accounts/v2/cmd_accounts.go index ab9e0772d95c..b6e06978172f 100644 --- a/validator/accounts/v2/cmd_accounts.go +++ b/validator/accounts/v2/cmd_accounts.go @@ -26,9 +26,10 @@ this command outputs a deposit data string which is required to become a validat flags.WalletPasswordFileFlag, flags.AccountPasswordFileFlag, flags.NumAccountsFlag, + flags.DeprecatedPasswordsDirFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, - flags.DeprecatedPasswordsDirFlag, + featureconfig.SpadinaTestnet, }, Action: func(cliCtx *cli.Context) error { featureconfig.ConfigureValidator(cliCtx) @@ -48,6 +49,7 @@ this command outputs a deposit data string which is required to become a validat flags.DeletePublicKeysFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, }, Action: func(cliCtx *cli.Context) error { featureconfig.ConfigureValidator(cliCtx) @@ -66,6 +68,7 @@ this command outputs a deposit data string which is required to become a validat flags.ShowDepositDataFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, flags.DeprecatedPasswordsDirFlag, }, Action: func(cliCtx *cli.Context) error { @@ -90,6 +93,7 @@ this command outputs a deposit data string which is required to become a validat flags.BackupPasswordFile, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, }, Action: func(cliCtx *cli.Context) error { featureconfig.ConfigureValidator(cliCtx) @@ -110,6 +114,7 @@ this command outputs a deposit data string which is required to become a validat flags.ImportPrivateKeyFileFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, flags.DeprecatedPasswordsDirFlag, }, Action: func(cliCtx *cli.Context) error { @@ -136,6 +141,7 @@ this command outputs a deposit data string which is required to become a validat flags.GrpcRetryDelayFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, }, Action: func(cliCtx *cli.Context) error { featureconfig.ConfigureValidator(cliCtx) @@ -161,6 +167,9 @@ this command outputs a deposit data string which is required to become a validat flags.DepositPublicKeysFlag, flags.SkipDepositConfirmationFlag, flags.DepositAllAccountsFlag, + featureconfig.AltonaTestnet, + featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, }, Action: func(cliCtx *cli.Context) error { featureconfig.ConfigureValidator(cliCtx) diff --git a/validator/accounts/v2/cmd_wallet.go b/validator/accounts/v2/cmd_wallet.go index 0a86577c35ed..304d43c9b78b 100644 --- a/validator/accounts/v2/cmd_wallet.go +++ b/validator/accounts/v2/cmd_wallet.go @@ -26,9 +26,11 @@ var WalletCommands = &cli.Command{ flags.WalletPasswordFileFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, flags.DeprecatedPasswordsDirFlag, }, Action: func(cliCtx *cli.Context) error { + featureconfig.ConfigureValidator(cliCtx) if _, err := CreateAndSaveWalletCli(cliCtx); err != nil { log.Fatalf("Could not create a wallet: %v", err) } @@ -46,9 +48,11 @@ var WalletCommands = &cli.Command{ flags.RemoteSignerCACertPathFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, flags.DeprecatedPasswordsDirFlag, }, Action: func(cliCtx *cli.Context) error { + featureconfig.ConfigureValidator(cliCtx) if err := EditWalletConfigurationCli(cliCtx); err != nil { log.Fatalf("Could not edit wallet configuration: %v", err) } @@ -65,9 +69,11 @@ var WalletCommands = &cli.Command{ flags.NumAccountsFlag, featureconfig.AltonaTestnet, featureconfig.OnyxTestnet, + featureconfig.SpadinaTestnet, flags.DeprecatedPasswordsDirFlag, }, Action: func(cliCtx *cli.Context) error { + featureconfig.ConfigureValidator(cliCtx) if err := RecoverWalletCli(cliCtx); err != nil { log.Fatalf("Could not recover wallet: %v", err) }