From 706b93b0dbad5ed62c8f84d583cf000561ed0cef Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Tue, 16 Oct 2018 15:14:43 +0530 Subject: [PATCH] get rid of annoying msg if the node is still importing blocks only --- cmd/XDC/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/XDC/main.go b/cmd/XDC/main.go index 3ab501eae9..455d82626d 100644 --- a/cmd/XDC/main.go +++ b/cmd/XDC/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