mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
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:
parent
cf4ca4758b
commit
8eff5d31eb
1 changed files with 5 additions and 4 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue