Skip to content

Commit

Permalink
Remove Accounts Enable/Disable Code (#8576)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
rauljordan and prylabs-bulldozer[bot] authored Mar 9, 2021
1 parent 2bb0a60 commit ab301aa
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 820 deletions.
2 changes: 0 additions & 2 deletions validator/accounts/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ go_library(
"accounts.go",
"accounts_backup.go",
"accounts_delete.go",
"accounts_enable_disable.go",
"accounts_exit.go",
"accounts_helper.go",
"accounts_import.go",
Expand Down Expand Up @@ -63,7 +62,6 @@ go_test(
srcs = [
"accounts_backup_test.go",
"accounts_delete_test.go",
"accounts_enable_disable_test.go",
"accounts_exit_test.go",
"accounts_import_test.go",
"accounts_list_test.go",
Expand Down
10 changes: 4 additions & 6 deletions validator/accounts/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ var (
ErrCouldNotInitializeKeymanager = "could not initialize keymanager"
)

// Config specifies parameters to run to delete, enable, disable accounts.
// Config specifies parameters for accounts commands.
type Config struct {
Wallet *wallet.Wallet
Keymanager keymanager.IKeymanager
DisablePublicKeys [][]byte
EnablePublicKeys [][]byte
DeletePublicKeys [][]byte
Wallet *wallet.Wallet
Keymanager keymanager.IKeymanager
DeletePublicKeys [][]byte
}
2 changes: 1 addition & 1 deletion validator/accounts/accounts_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func BackupAccountsCli(cliCtx *cli.Context) error {
if err != nil {
return errors.Wrap(err, ErrCouldNotInitializeKeymanager)
}
pubKeys, err := km.FetchAllValidatingPublicKeys(cliCtx.Context)
pubKeys, err := km.FetchValidatingPublicKeys(cliCtx.Context)
if err != nil {
return errors.Wrap(err, "could not fetch validating public keys")
}
Expand Down
2 changes: 1 addition & 1 deletion validator/accounts/accounts_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func DeleteAccountCli(cliCtx *cli.Context) error {
if err != nil {
return errors.Wrap(err, ErrCouldNotInitializeKeymanager)
}
validatingPublicKeys, err := kManager.FetchAllValidatingPublicKeys(cliCtx.Context)
validatingPublicKeys, err := kManager.FetchValidatingPublicKeys(cliCtx.Context)
if err != nil {
return err
}
Expand Down
173 changes: 0 additions & 173 deletions validator/accounts/accounts_enable_disable.go

This file was deleted.

143 changes: 0 additions & 143 deletions validator/accounts/accounts_enable_disable_test.go

This file was deleted.

Loading

0 comments on commit ab301aa

Please sign in to comment.