From 127af2e37dd74572cfd5abb26c90cd5feec11831 Mon Sep 17 00:00:00 2001 From: james-prysm Date: Fri, 26 Jan 2024 15:18:51 -0600 Subject: [PATCH] add a log and update size for promptui --- validator/accounts/accounts_helper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/validator/accounts/accounts_helper.go b/validator/accounts/accounts_helper.go index 70319337238a..87457d4a409f 100644 --- a/validator/accounts/accounts_helper.go +++ b/validator/accounts/accounts_helper.go @@ -42,10 +42,14 @@ func selectAccounts(selectionPrompt string, pubKeys [][fieldparams.BLSPubkeyLeng exit := "Done selecting" 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) + } for result != exit { p := promptui.Select{ Label: selectionPrompt, HideSelected: true, + Size: len(pubKeyStrings), Items: append([]string{exit, allAccountsText}, pubKeyStrings...), Templates: templates, }