Skip to content

Commit

Permalink
Merge pull request ethereum#72 from ngtuna/tiny-logging-improvement
Browse files Browse the repository at this point in the history
get rid of annoying msg if the node is still importing blocks only
  • Loading branch information
ngtuna authored Jul 4, 2018
2 parents d6c6163 + c5fba13 commit 95a0928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tomo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95a0928

Please sign in to comment.