mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
removes misleading keymanager info log (#15926)
* simple change * fixing test" "
This commit is contained in:
3
changelog/james-prysm_remove-deposit-keymanager-log.md
Normal file
3
changelog/james-prysm_remove-deposit-keymanager-log.md
Normal file
@@ -0,0 +1,3 @@
|
||||
### Removed
|
||||
|
||||
- log mentioning removed flag `--show-deposit-data`
|
||||
@@ -221,10 +221,10 @@ func TestListAccounts_LocalKeymanager(t *testing.T) {
|
||||
// Expected output format definition
|
||||
const prologLength = 4
|
||||
const accountLength = 4
|
||||
const epilogLength = 2
|
||||
const nameOffset = 1
|
||||
const keyOffset = 2
|
||||
const privkeyOffset = 3
|
||||
const epilogLength = 1
|
||||
|
||||
const keyOffset = 1
|
||||
const privkeyOffset = 2
|
||||
|
||||
// Require the output has correct number of lines
|
||||
lineCount := prologLength + accountLength*numAccounts + epilogLength
|
||||
@@ -242,7 +242,7 @@ func TestListAccounts_LocalKeymanager(t *testing.T) {
|
||||
|
||||
// Assert that account names are printed on the correct lines
|
||||
for i, accountName := range accountNames {
|
||||
lineNumber := prologLength + accountLength*i + nameOffset
|
||||
lineNumber := prologLength + accountLength*i
|
||||
accountNameFound := strings.Contains(lines[lineNumber], accountName)
|
||||
assert.Equal(t, true, accountNameFound, "Account Name %s not found on line number %d", accountName, lineNumber)
|
||||
}
|
||||
|
||||
@@ -402,10 +402,6 @@ func (km *Keymanager) ListKeymanagerAccounts(ctx context.Context, cfg keymanager
|
||||
} else {
|
||||
fmt.Printf("Showing %d validator accounts\n", numAccounts)
|
||||
}
|
||||
fmt.Println(
|
||||
au.BrightRed("View the eth1 deposit transaction data for your accounts " +
|
||||
"by running `validator accounts list --show-deposit-data`"),
|
||||
)
|
||||
|
||||
pubKeys, err := km.FetchValidatingPublicKeys(ctx)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user