Revert "Test"

This reverts commit 7255df320a.
This commit is contained in:
jl777
2017-03-16 09:45:22 +02:00
parent 4fb9b7064c
commit d0f7ead0c4

View File

@@ -426,10 +426,10 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
CValidationState state; CValidationState state;
if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false))
{ {
//static uint32_t counter; static uint32_t counter;
//if ( counter++ < 100 ) if ( counter++ < 100 )
fprintf(stderr,"warning: testblockvalidity failed\n"); fprintf(stderr,"warning: testblockvalidity failed\n");
//return(0); return(0);
//throw std::runtime_error("CreateNewBlock(): TestBlockValidity failed"); //throw std::runtime_error("CreateNewBlock(): TestBlockValidity failed");
} }
} }
@@ -612,15 +612,15 @@ void static BitcoinMiner(CWallet *pwallet)
Mining_height = pindexPrev->nHeight+1; Mining_height = pindexPrev->nHeight+1;
Mining_start = (uint32_t)time(NULL); 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); fprintf(stderr,"%s create new block ht.%d\n",ASSETCHAINS_SYMBOL,Mining_height);
CBlockTemplate *ptr = CreateNewBlockWithKey(reservekey); CBlockTemplate *ptr = CreateNewBlockWithKey(reservekey);
if ( ptr == 0 ) if ( ptr == 0 )
{ {
//static uint32_t counter; static uint32_t counter;
//if ( counter++ < 100 ) if ( counter++ < 100 )
fprintf(stderr,"created illegal block, retry\n"); fprintf(stderr,"created illegal block, retry\n");
//continue; continue;
} }
unique_ptr<CBlockTemplate> pblocktemplate(ptr); unique_ptr<CBlockTemplate> pblocktemplate(ptr);
if (!pblocktemplate.get()) if (!pblocktemplate.get())