From 4ca6678c7090c5c27147796571b0cd4c0833ebbd Mon Sep 17 00:00:00 2001 From: Michael Toutonghi Date: Thu, 9 Aug 2018 18:19:18 -0700 Subject: [PATCH] Put staking readout once per staking loop so people know it's staking --- src/miner.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 19dd780b3..f31d6bd7c 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -859,20 +859,15 @@ void static VerusStaker(CWallet *pwallet) pindexCur = chainActive.LastTip(); } while (pindexPrev != pindexCur); - { - LOCK(cs_main); - printf("Staking height %d for %s\n", chainActive.Tip()->nHeight + 1, ASSETCHAINS_SYMBOL); - //fprintf(stderr,"Staking height %d for %s\n", chainActive.Tip()->nHeight + 1, ASSETCHAINS_SYMBOL); - } - try { while (true) { waitForPeers(chainparams); + CBlockIndex* pindexPrev = chainActive.LastTip(); + printf("Staking height %d for %s\n", pindexPrev->nHeight + 1, ASSETCHAINS_SYMBOL); // Create new block unsigned int nTransactionsUpdatedLast = mempool.GetTransactionsUpdated(); - CBlockIndex* pindexPrev = chainActive.LastTip(); if ( Mining_height != pindexPrev->nHeight+1 ) { Mining_height = pindexPrev->nHeight+1;