add feature config support (#6904)

This commit is contained in:
Nishant Das 2020-08-06 20:49:41 +08:00 committed by GitHub
parent 40b68da486
commit 5b75f4e6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ this command outputs a deposit data string which is required to become a validat
featureconfig.OnyxTestnet,
},
Action: func(cliCtx *cli.Context) error {
featureconfig.ConfigureValidator(cliCtx)
if err := CreateAccount(cliCtx); err != nil {
log.Fatalf("Could not create new account: %v", err)
}
@ -46,6 +47,7 @@ this command outputs a deposit data string which is required to become a validat
featureconfig.OnyxTestnet,
},
Action: func(cliCtx *cli.Context) error {
featureconfig.ConfigureValidator(cliCtx)
if err := ListAccounts(cliCtx); err != nil {
log.Fatalf("Could not list accounts: %v", err)
}
@ -63,6 +65,7 @@ this command outputs a deposit data string which is required to become a validat
featureconfig.OnyxTestnet,
},
Action: func(cliCtx *cli.Context) error {
featureconfig.ConfigureValidator(cliCtx)
if err := ExportAccount(cliCtx); err != nil {
log.Fatalf("Could not export accounts: %v", err)
}
@ -82,6 +85,7 @@ this command outputs a deposit data string which is required to become a validat
featureconfig.OnyxTestnet,
},
Action: func(cliCtx *cli.Context) error {
featureconfig.ConfigureValidator(cliCtx)
if err := ImportAccount(cliCtx); err != nil {
log.Fatalf("Could not import accounts: %v", err)
}