[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.
This commit is contained in:
glozow
2022-02-22 16:10:31 +00:00
parent bc49650b7c
commit 40e871d9b4
3 changed files with 10 additions and 30 deletions

View File

@@ -132,7 +132,6 @@ private:
std::unique_ptr<CBlockTemplate> pblocktemplate;
// Configuration parameters for the block size
bool fIncludeWitness;
unsigned int nBlockMaxWeight;
CFeeRate blockMinFeeRate;