Skip to content

Commit

Permalink
Prysmctl ui bug (#14140)
Browse files Browse the repository at this point in the history
* Fix ui bug

* Better logging
  • Loading branch information
saolyn authored Jun 25, 2024
1 parent 9d6a2f5 commit 5f0d607
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions validator/accounts/accounts_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ func selectAccounts(selectionPrompt string, pubKeys [][fieldparams.BLSPubkeyLeng
results := make([]int, 0)
au := aurora.NewAurora(true)
if len(pubKeyStrings) > 5 {
log.Warnf("there are more than %d potential public keys to exit, please consider using the --%s or --%s flags", 5, flags.VoluntaryExitPublicKeysFlag.Name, flags.ExitAllFlag.Name)
log.Warnf("There are more than %d potential public keys to exit, please consider using the --%s or --%s flags", 5, flags.VoluntaryExitPublicKeysFlag.Name, flags.ExitAllFlag.Name)
}
log.Infof("Found a total of %d keys", len(pubKeyStrings))
for result != exit {
p := promptui.Select{
Label: selectionPrompt,
HideSelected: true,
Size: len(pubKeyStrings),
Size: 10, // Display 10 items at a time.
Items: append([]string{exit, allAccountsText}, pubKeyStrings...),
Templates: templates,
}
Expand Down

0 comments on commit 5f0d607

Please sign in to comment.