Add --mainnet no-op to validator sub-commands (#7833)

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
yorickdowne
2020-11-16 22:17:08 -05:00
committed by GitHub
parent 5889670cc7
commit 194ee7c439
2 changed files with 20 additions and 10 deletions

View File

@@ -23,8 +23,9 @@ var AccountCommands = &cli.Command{
flags.WalletDirFlag,
flags.WalletPasswordFileFlag,
flags.DeletePublicKeysFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -48,8 +49,9 @@ var AccountCommands = &cli.Command{
flags.WalletDirFlag,
flags.WalletPasswordFileFlag,
flags.DisablePublicKeysFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -73,8 +75,9 @@ var AccountCommands = &cli.Command{
flags.WalletDirFlag,
flags.WalletPasswordFileFlag,
flags.EnablePublicKeysFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -99,8 +102,9 @@ var AccountCommands = &cli.Command{
flags.WalletPasswordFileFlag,
flags.ShowDepositDataFlag,
flags.ShowPrivateKeysFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -129,8 +133,9 @@ var AccountCommands = &cli.Command{
flags.BackupDirFlag,
flags.BackupPublicKeysFlag,
flags.BackupPasswordFile,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -156,8 +161,9 @@ var AccountCommands = &cli.Command{
flags.WalletPasswordFileFlag,
flags.AccountPasswordFileFlag,
flags.ImportPrivateKeyFileFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -188,8 +194,9 @@ var AccountCommands = &cli.Command{
flags.GrpcHeadersFlag,
flags.GrpcRetriesFlag,
flags.GrpcRetryDelayFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {

View File

@@ -28,8 +28,9 @@ var WalletCommands = &cli.Command{
flags.WalletPasswordFileFlag,
flags.Mnemonic25thWordFileFlag,
flags.SkipMnemonic25thWordCheckFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -55,8 +56,9 @@ var WalletCommands = &cli.Command{
flags.RemoteSignerCertPathFlag,
flags.RemoteSignerKeyPathFlag,
flags.RemoteSignerCACertPathFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {
@@ -83,8 +85,9 @@ var WalletCommands = &cli.Command{
flags.NumAccountsFlag,
flags.Mnemonic25thWordFileFlag,
flags.SkipMnemonic25thWordCheckFlag,
featureconfig.ToledoTestnet,
featureconfig.Mainnet,
featureconfig.PyrmontTestnet,
featureconfig.ToledoTestnet,
cmd.AcceptTosFlag,
}),
Before: func(cliCtx *cli.Context) error {