From 7255df320a3100a5c7b1a2a6292ed7e0d3e54597 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 16 Mar 2017 09:14:57 +0200 Subject: [PATCH] Test --- src/miner.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index e9ab80741..74e72aad6 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -426,10 +426,10 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) CValidationState state; if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) { - static uint32_t counter; - if ( counter++ < 100 ) + //static uint32_t counter; + //if ( counter++ < 100 ) fprintf(stderr,"warning: testblockvalidity failed\n"); - return(0); + //return(0); //throw std::runtime_error("CreateNewBlock(): TestBlockValidity failed"); } } @@ -612,15 +612,15 @@ void static BitcoinMiner(CWallet *pwallet) Mining_height = pindexPrev->nHeight+1; Mining_start = (uint32_t)time(NULL); } - if ( ASSETCHAINS_SYMBOL[0] != 0 ) + //if ( ASSETCHAINS_SYMBOL[0] != 0 ) fprintf(stderr,"%s create new block ht.%d\n",ASSETCHAINS_SYMBOL,Mining_height); CBlockTemplate *ptr = CreateNewBlockWithKey(reservekey); if ( ptr == 0 ) { - static uint32_t counter; - if ( counter++ < 100 ) + //static uint32_t counter; + //if ( counter++ < 100 ) fprintf(stderr,"created illegal block, retry\n"); - continue; + //continue; } unique_ptr pblocktemplate(ptr); if (!pblocktemplate.get())