cmd/pool: increase default number of keys to try in recovery

This commit fixes an issue where a large number of attempts at creating
an account lead to the index of the first successful account to be
higher than the previous number of keys we tried by default. This
resulted in the account not being recovered without manually overriding
this value in the command line.
This commit is contained in:
Oliver Gugger 2023-02-08 16:42:08 +01:00
parent cf4ca4758b
commit 8eff5d31eb
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -74,7 +74,7 @@ const (
// defaultAccountTarget is the default number of accounts that will try
// to recreate in the account recovery process.
defaultAccountTarget = 20
defaultAccountTarget = 50
)
var (
@ -874,9 +874,10 @@ var recoverAccountsCommand = cli.Command{
},
cli.Uint64Flag{
Name: "account_target",
Usage: "number of accounts that we are looking to " +
"recover, set higher if there were more than " +
"20 accounts",
Usage: fmt.Sprintf("number of accounts that we are "+
"looking to recover, set higher if there were "+
"more than %d accounts or attempts at "+
"creating accounts", defaultAccountTarget),
Value: defaultAccountTarget,
},
cli.StringFlag{