File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,10 @@ TestChain100Setup::TestChain100Setup()
215
215
CBlock TestChain100Setup::CreateAndProcessBlock (const std::vector<CMutableTransaction>& txns, const CScript& scriptPubKey)
216
216
{
217
217
const CChainParams& chainparams = Params ();
218
- CBlock block = BlockAssembler (*m_node.mempool , chainparams).CreateNewBlock (scriptPubKey)->block ;
218
+ CTxMemPool empty_pool;
219
+ CBlock block = BlockAssembler (empty_pool, chainparams).CreateNewBlock (scriptPubKey)->block ;
219
220
220
- // Replace mempool-selected txns with just coinbase plus passed-in txns:
221
- block.vtx .resize (1 );
221
+ Assert (block.vtx .size () == 1 );
222
222
for (const CMutableTransaction& tx : txns) {
223
223
block.vtx .push_back (MakeTransactionRef (tx));
224
224
}
You can’t perform that action at this time.
0 commit comments