From c5fba13c4395615f1b497480c4a5d0e8b9d90bac Mon Sep 17 00:00:00 2001 From: Tuna Date: Tue, 3 Jul 2018 17:40:06 +0700 Subject: [PATCH] get rid of annoying msg if the node is still importing blocks only --- cmd/tomo/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tomo/main.go b/cmd/tomo/main.go index c59d017856da..82e26a782a1b 100644 --- a/cmd/tomo/main.go +++ b/cmd/tomo/main.go @@ -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