From 986d0d8b7da89b95dfd355156aa48278cf8d1e18 Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 22 Sep 2024 08:51:48 -0400 Subject: [PATCH] isStake is always zero --- src/miner.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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(); }