cmd/geth: set correct initial nonce on testnet for import/init subcommands (#2924)
This commit is contained in:
committed by
Péter Szilágyi
parent
7d9c5e0f7d
commit
6bd9008025
@ -76,6 +76,9 @@ func importChain(ctx *cli.Context) error {
|
||||
if len(ctx.Args()) != 1 {
|
||||
utils.Fatalf("This command requires an argument.")
|
||||
}
|
||||
if ctx.GlobalBool(utils.TestNetFlag.Name) {
|
||||
state.StartingNonce = 1048576 // (2**20)
|
||||
}
|
||||
chain, chainDb := utils.MakeChain(ctx)
|
||||
start := time.Now()
|
||||
err := utils.ImportChain(chain, ctx.Args().First())
|
||||
|
Reference in New Issue
Block a user