From 581409cbd16a337df6a8326c0b1d3caaaaa2b8b0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 23 Jul 2018 20:24:33 -1100 Subject: [PATCH] Test --- src/miner.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index a5265ba49..79155259a 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -493,20 +493,20 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn,int32_t gpucount) return(0); } } - else if ( ASSETCHAINS_STAKED == 0 ) + } + if ( ASSETCHAINS_STAKED == 0 ) + { + CValidationState state; + fprintf(stderr,"check validity\n"); + if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) { - CValidationState state; - fprintf(stderr,"check validity\n"); - if ( !TestBlockValidity(state, *pblock, pindexPrev, false, false)) - { - //static uint32_t counter; - //if ( counter++ < 100 && ASSETCHAINS_STAKED == 0 ) - // fprintf(stderr,"warning: miner testblockvalidity failed\n"); - fprintf(stderr,"invalid\n"); - return(0); - } - fprintf(stderr,"valid\n"); + //static uint32_t counter; + //if ( counter++ < 100 && ASSETCHAINS_STAKED == 0 ) + // fprintf(stderr,"warning: miner testblockvalidity failed\n"); + fprintf(stderr,"invalid\n"); + return(0); } + fprintf(stderr,"valid\n"); } fprintf(stderr,"done new block\n");