Skip to content

Commit ab301aa

Browse files
Remove Accounts Enable/Disable Code (#8576)
* rem * remove all enable disable code * fix broken build * fix more tests * fix broken tests Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
1 parent 2bb0a60 commit ab301aa

21 files changed

+35
-820
lines changed

validator/accounts/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ go_library(
77
"accounts.go",
88
"accounts_backup.go",
99
"accounts_delete.go",
10-
"accounts_enable_disable.go",
1110
"accounts_exit.go",
1211
"accounts_helper.go",
1312
"accounts_import.go",
@@ -63,7 +62,6 @@ go_test(
6362
srcs = [
6463
"accounts_backup_test.go",
6564
"accounts_delete_test.go",
66-
"accounts_enable_disable_test.go",
6765
"accounts_exit_test.go",
6866
"accounts_import_test.go",
6967
"accounts_list_test.go",

validator/accounts/accounts.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ var (
1111
ErrCouldNotInitializeKeymanager = "could not initialize keymanager"
1212
)
1313

14-
// Config specifies parameters to run to delete, enable, disable accounts.
14+
// Config specifies parameters for accounts commands.
1515
type Config struct {
16-
Wallet *wallet.Wallet
17-
Keymanager keymanager.IKeymanager
18-
DisablePublicKeys [][]byte
19-
EnablePublicKeys [][]byte
20-
DeletePublicKeys [][]byte
16+
Wallet *wallet.Wallet
17+
Keymanager keymanager.IKeymanager
18+
DeletePublicKeys [][]byte
2119
}

validator/accounts/accounts_backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func BackupAccountsCli(cliCtx *cli.Context) error {
5656
if err != nil {
5757
return errors.Wrap(err, ErrCouldNotInitializeKeymanager)
5858
}
59-
pubKeys, err := km.FetchAllValidatingPublicKeys(cliCtx.Context)
59+
pubKeys, err := km.FetchValidatingPublicKeys(cliCtx.Context)
6060
if err != nil {
6161
return errors.Wrap(err, "could not fetch validating public keys")
6262
}

validator/accounts/accounts_delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func DeleteAccountCli(cliCtx *cli.Context) error {
3232
if err != nil {
3333
return errors.Wrap(err, ErrCouldNotInitializeKeymanager)
3434
}
35-
validatingPublicKeys, err := kManager.FetchAllValidatingPublicKeys(cliCtx.Context)
35+
validatingPublicKeys, err := kManager.FetchValidatingPublicKeys(cliCtx.Context)
3636
if err != nil {
3737
return err
3838
}

validator/accounts/accounts_enable_disable.go

Lines changed: 0 additions & 173 deletions
This file was deleted.

validator/accounts/accounts_enable_disable_test.go

Lines changed: 0 additions & 143 deletions
This file was deleted.

0 commit comments

Comments
 (0)