diff --git a/src/miner.cpp b/src/miner.cpp index 3f393d2c0..ca3341fb7 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -762,11 +762,10 @@ CBlockTemplate* CreateNewBlock(CPubKey _pk,const CScript& _scriptPubKeyIn, int32 //fprintf(stderr,"valid\n"); } } - if ( !isStake ) - { - LEAVE_CRITICAL_SECTION(cs_main); - LEAVE_CRITICAL_SECTION(mempool.cs); - } + + LEAVE_CRITICAL_SECTION(cs_main); + LEAVE_CRITICAL_SECTION(mempool.cs); + // fprintf(stderr,"%s: done\n", __func__); return pblocktemplate.release(); }