mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
get rid of annoying msg if the node is still importing blocks only
This commit is contained in:
parent
f319f5c1df
commit
706b93b0db
1 changed files with 2 additions and 2 deletions
|
|
@ -328,12 +328,12 @@ func startNode(ctx *cli.Context, stack *node.Node) {
|
|||
utils.Fatalf("Can't verify masternode permission: %v", err)
|
||||
}
|
||||
if !ok {
|
||||
log.Info("Only masternode can propose and verify blocks. Cancelling mining on this node...")
|
||||
if started {
|
||||
log.Info("Only masternode can propose and verify blocks. Cancelling mining on this node...")
|
||||
ethereum.StopMining()
|
||||
started = false
|
||||
log.Info("Cancelled mining mode!!!")
|
||||
}
|
||||
log.Info("Cancelled mining mode!!!")
|
||||
} else if !started {
|
||||
log.Info("Masternode found. Enabling mining mode...")
|
||||
// Use a reduced number of threads if requested
|
||||
|
|
|
|||
Loading…
Reference in a new issue