mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Create config package for Shared/featureconfig (#9593)
* add config/features * Gazelle * Gazelle * Fix build * Go mod tidy * active cache Co-authored-by: rauljordan <raul@prysmaticlabs.com>
This commit is contained in:
@@ -7,8 +7,8 @@ go_library(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//cmd/validator/flags:go_default_library",
|
||||
"//config/features:go_default_library",
|
||||
"//shared/cmd:go_default_library",
|
||||
"//shared/featureconfig:go_default_library",
|
||||
"//shared/tos:go_default_library",
|
||||
"//validator/accounts:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/cmd/validator/flags"
|
||||
"github.com/prysmaticlabs/prysm/config/features"
|
||||
"github.com/prysmaticlabs/prysm/shared/cmd"
|
||||
"github.com/prysmaticlabs/prysm/shared/featureconfig"
|
||||
"github.com/prysmaticlabs/prysm/shared/tos"
|
||||
"github.com/prysmaticlabs/prysm/validator/accounts"
|
||||
"github.com/sirupsen/logrus"
|
||||
@@ -27,9 +27,9 @@ var Commands = &cli.Command{
|
||||
flags.WalletDirFlag,
|
||||
flags.WalletPasswordFileFlag,
|
||||
flags.DeletePublicKeysFlag,
|
||||
featureconfig.Mainnet,
|
||||
featureconfig.PyrmontTestnet,
|
||||
featureconfig.PraterTestnet,
|
||||
features.Mainnet,
|
||||
features.PyrmontTestnet,
|
||||
features.PraterTestnet,
|
||||
cmd.AcceptTosFlag,
|
||||
}),
|
||||
Before: func(cliCtx *cli.Context) error {
|
||||
@@ -39,7 +39,7 @@ var Commands = &cli.Command{
|
||||
return tos.VerifyTosAcceptedOrPrompt(cliCtx)
|
||||
},
|
||||
Action: func(cliCtx *cli.Context) error {
|
||||
featureconfig.ConfigureValidator(cliCtx)
|
||||
features.ConfigureValidator(cliCtx)
|
||||
if err := accounts.DeleteAccountCli(cliCtx); err != nil {
|
||||
log.Fatalf("Could not delete account: %v", err)
|
||||
}
|
||||
@@ -61,9 +61,9 @@ var Commands = &cli.Command{
|
||||
flags.GrpcHeadersFlag,
|
||||
flags.GrpcRetriesFlag,
|
||||
flags.GrpcRetryDelayFlag,
|
||||
featureconfig.Mainnet,
|
||||
featureconfig.PyrmontTestnet,
|
||||
featureconfig.PraterTestnet,
|
||||
features.Mainnet,
|
||||
features.PyrmontTestnet,
|
||||
features.PraterTestnet,
|
||||
cmd.AcceptTosFlag,
|
||||
}),
|
||||
Before: func(cliCtx *cli.Context) error {
|
||||
@@ -73,7 +73,7 @@ var Commands = &cli.Command{
|
||||
return tos.VerifyTosAcceptedOrPrompt(cliCtx)
|
||||
},
|
||||
Action: func(cliCtx *cli.Context) error {
|
||||
featureconfig.ConfigureValidator(cliCtx)
|
||||
features.ConfigureValidator(cliCtx)
|
||||
if err := accounts.ListAccountsCli(cliCtx); err != nil {
|
||||
log.Fatalf("Could not list accounts: %v", err)
|
||||
}
|
||||
@@ -92,9 +92,9 @@ var Commands = &cli.Command{
|
||||
flags.BackupDirFlag,
|
||||
flags.BackupPublicKeysFlag,
|
||||
flags.BackupPasswordFile,
|
||||
featureconfig.Mainnet,
|
||||
featureconfig.PyrmontTestnet,
|
||||
featureconfig.PraterTestnet,
|
||||
features.Mainnet,
|
||||
features.PyrmontTestnet,
|
||||
features.PraterTestnet,
|
||||
cmd.AcceptTosFlag,
|
||||
}),
|
||||
Before: func(cliCtx *cli.Context) error {
|
||||
@@ -104,7 +104,7 @@ var Commands = &cli.Command{
|
||||
return tos.VerifyTosAcceptedOrPrompt(cliCtx)
|
||||
},
|
||||
Action: func(cliCtx *cli.Context) error {
|
||||
featureconfig.ConfigureValidator(cliCtx)
|
||||
features.ConfigureValidator(cliCtx)
|
||||
if err := accounts.BackupAccountsCli(cliCtx); err != nil {
|
||||
log.Fatalf("Could not backup accounts: %v", err)
|
||||
}
|
||||
@@ -120,9 +120,9 @@ var Commands = &cli.Command{
|
||||
flags.WalletPasswordFileFlag,
|
||||
flags.AccountPasswordFileFlag,
|
||||
flags.ImportPrivateKeyFileFlag,
|
||||
featureconfig.Mainnet,
|
||||
featureconfig.PyrmontTestnet,
|
||||
featureconfig.PraterTestnet,
|
||||
features.Mainnet,
|
||||
features.PyrmontTestnet,
|
||||
features.PraterTestnet,
|
||||
cmd.AcceptTosFlag,
|
||||
}),
|
||||
Before: func(cliCtx *cli.Context) error {
|
||||
@@ -132,7 +132,7 @@ var Commands = &cli.Command{
|
||||
return tos.VerifyTosAcceptedOrPrompt(cliCtx)
|
||||
},
|
||||
Action: func(cliCtx *cli.Context) error {
|
||||
featureconfig.ConfigureValidator(cliCtx)
|
||||
features.ConfigureValidator(cliCtx)
|
||||
if err := accounts.ImportAccountsCli(cliCtx); err != nil {
|
||||
log.Fatalf("Could not import accounts: %v", err)
|
||||
}
|
||||
@@ -154,9 +154,9 @@ var Commands = &cli.Command{
|
||||
flags.GrpcRetriesFlag,
|
||||
flags.GrpcRetryDelayFlag,
|
||||
flags.ExitAllFlag,
|
||||
featureconfig.Mainnet,
|
||||
featureconfig.PyrmontTestnet,
|
||||
featureconfig.PraterTestnet,
|
||||
features.Mainnet,
|
||||
features.PyrmontTestnet,
|
||||
features.PraterTestnet,
|
||||
cmd.AcceptTosFlag,
|
||||
}),
|
||||
Before: func(cliCtx *cli.Context) error {
|
||||
@@ -166,7 +166,7 @@ var Commands = &cli.Command{
|
||||
return tos.VerifyTosAcceptedOrPrompt(cliCtx)
|
||||
},
|
||||
Action: func(cliCtx *cli.Context) error {
|
||||
featureconfig.ConfigureValidator(cliCtx)
|
||||
features.ConfigureValidator(cliCtx)
|
||||
if err := accounts.ExitAccountsCli(cliCtx, os.Stdin); err != nil {
|
||||
log.Fatalf("Could not perform voluntary exit: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user