mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +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)
|
utils.Fatalf("Can't verify masternode permission: %v", err)
|
||||||
}
|
}
|
||||||
if !ok {
|
if !ok {
|
||||||
log.Info("Only masternode can propose and verify blocks. Cancelling mining on this node...")
|
|
||||||
if started {
|
if started {
|
||||||
|
log.Info("Only masternode can propose and verify blocks. Cancelling mining on this node...")
|
||||||
ethereum.StopMining()
|
ethereum.StopMining()
|
||||||
started = false
|
started = false
|
||||||
}
|
|
||||||
log.Info("Cancelled mining mode!!!")
|
log.Info("Cancelled mining mode!!!")
|
||||||
|
}
|
||||||
} else if !started {
|
} else if !started {
|
||||||
log.Info("Masternode found. Enabling mining mode...")
|
log.Info("Masternode found. Enabling mining mode...")
|
||||||
// Use a reduced number of threads if requested
|
// Use a reduced number of threads if requested
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue