Do not pass CChainParams& to BlockAssembler constructor

This commit is contained in:
MacroFake
2022-05-18 18:31:12 +02:00
parent faf012b438
commit fafe5c0ca2
9 changed files with 16 additions and 16 deletions

View File

@@ -51,7 +51,7 @@ BlockAssembler MinerTestingSetup::AssemblerForTest(const CChainParams& params)
options.nBlockMaxWeight = MAX_BLOCK_WEIGHT;
options.blockMinFeeRate = blockMinFeeRate;
return BlockAssembler(m_node.chainman->ActiveChainstate(), *m_node.mempool, params, options);
return BlockAssembler{m_node.chainman->ActiveChainstate(), *m_node.mempool, options};
}
constexpr static struct {