Rename Direct Keymanager to Imported (#7549)

* rename direct to imported

* km

* fix more refs

* rename all instances appropriately

* rename instances of nonhd
This commit is contained in:
Raul Jordan
2020-10-16 13:45:14 -05:00
committed by GitHub
parent 9a0d579607
commit 7e44d1eec7
58 changed files with 523 additions and 555 deletions

View File

@@ -29,7 +29,7 @@ import (
"github.com/prysmaticlabs/prysm/validator/db/kv"
"github.com/prysmaticlabs/prysm/validator/flags"
"github.com/prysmaticlabs/prysm/validator/keymanager"
"github.com/prysmaticlabs/prysm/validator/keymanager/direct"
"github.com/prysmaticlabs/prysm/validator/keymanager/imported"
"github.com/prysmaticlabs/prysm/validator/rpc"
"github.com/prysmaticlabs/prysm/validator/rpc/gateway"
slashing_protection "github.com/prysmaticlabs/prysm/validator/slashing-protection"
@@ -164,7 +164,7 @@ func (s *ValidatorClient) initializeFromCLI(cliCtx *cli.Context) error {
if cliCtx.IsSet(flags.InteropNumValidators.Name) {
numValidatorKeys := cliCtx.Uint64(flags.InteropNumValidators.Name)
offset := cliCtx.Uint64(flags.InteropStartIndex.Name)
keyManager, err = direct.NewInteropKeymanager(cliCtx.Context, offset, numValidatorKeys)
keyManager, err = imported.NewInteropKeymanager(cliCtx.Context, offset, numValidatorKeys)
if err != nil {
return errors.Wrap(err, "could not generate interop keys")
}