mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
shutdown after startNode completes
This commit is contained in:
parent
08c0a7669a
commit
e7c497b28f
1 changed files with 4 additions and 3 deletions
|
|
@ -342,6 +342,10 @@ func geth(ctx *cli.Context) error {
|
||||||
defer stack.Close()
|
defer stack.Close()
|
||||||
|
|
||||||
startNode(ctx, stack, backend, false)
|
startNode(ctx, stack, backend, false)
|
||||||
|
|
||||||
|
upgradeBlockHeight := uint64(10)
|
||||||
|
utils.ShutdownAtUpgradeBlockHeight(ctx, stack, upgradeBlockHeight)
|
||||||
|
|
||||||
stack.Wait()
|
stack.Wait()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
@ -355,9 +359,6 @@ func startNode(ctx *cli.Context, stack *node.Node, backend ethapi.Backend, isCon
|
||||||
// Start up the node itself
|
// Start up the node itself
|
||||||
utils.StartNode(ctx, stack, isConsole)
|
utils.StartNode(ctx, stack, isConsole)
|
||||||
|
|
||||||
upgradeBlockHeight := uint64(10)
|
|
||||||
utils.ShutdownAtUpgradeBlockHeight(ctx, stack, upgradeBlockHeight)
|
|
||||||
|
|
||||||
// Unlock any account specifically requested
|
// Unlock any account specifically requested
|
||||||
unlockAccounts(ctx, stack)
|
unlockAccounts(ctx, stack)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue