aboutsummaryrefslogtreecommitdiff
path: root/src/node/miner.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-02-22 16:10:31 +0000
committerglozow <gloriajzhao@gmail.com>2022-02-23 10:55:05 +0000
commit40e871d9b4e55f5b5f7ce2a89157cd3d9f152037 (patch)
treeec7f156a64bbca43e574aa4e09fab4f5478bcd8e /src/node/miner.h
parentbc49650b7c1240b076849bd805ac10e403764c33 (diff)
downloadbitcoin-40e871d9b4e55f5b5f7ce2a89157cd3d9f152037.tar.xz
[miner] always assume we can create witness blocks
Given the low possibility of a reorg reverting the segwit soft fork, there is no need to check whether segwit is active here. Also, TestBlockValidity is run on the block template after it has been created.
Diffstat (limited to 'src/node/miner.h')
-rw-r--r--src/node/miner.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node/miner.h b/src/node/miner.h
index c96da874a7..97c55f2864 100644
--- a/src/node/miner.h
+++ b/src/node/miner.h
@@ -132,7 +132,6 @@ private:
std::unique_ptr<CBlockTemplate> pblocktemplate;
// Configuration parameters for the block size
- bool fIncludeWitness;
unsigned int nBlockMaxWeight;
CFeeRate blockMinFeeRate;