@@ -86,7 +86,7 @@ void Finish(FuzzedDataProvider& fuzzed_data_provider, MockedTxPool& tx_pool, CCh
86
86
BlockAssembler::Options options;
87
87
options.nBlockMaxWeight = fuzzed_data_provider.ConsumeIntegralInRange (0U , MAX_BLOCK_WEIGHT);
88
88
options.blockMinFeeRate = CFeeRate{ConsumeMoney (fuzzed_data_provider, /* max=*/ COIN)};
89
- auto assembler = BlockAssembler{chainstate, *static_cast <CTxMemPool*>(&tx_pool), :: Params () , options};
89
+ auto assembler = BlockAssembler{chainstate, *static_cast <CTxMemPool*>(&tx_pool), chainstate. m_params , options};
90
90
auto block_template = assembler.CreateNewBlock (CScript{} << OP_TRUE);
91
91
Assert (block_template->block .vtx .size () >= 1 );
92
92
}
@@ -224,13 +224,12 @@ FUZZ_TARGET_INIT(tx_pool_standard, initialize_tx_pool)
224
224
// Make sure ProcessNewPackage on one transaction works and always fully validates the transaction.
225
225
// The result is not guaranteed to be the same as what is returned by ATMP.
226
226
const auto result_package = WITH_LOCK (::cs_main,
227
- return ProcessNewPackage (node. chainman -> ActiveChainstate () , tx_pool, {tx}, true ));
227
+ return ProcessNewPackage (chainstate , tx_pool, {tx}, true ));
228
228
auto it = result_package.m_tx_results .find (tx->GetWitnessHash ());
229
229
Assert (it != result_package.m_tx_results .end ());
230
230
Assert (it->second .m_result_type == MempoolAcceptResult::ResultType::VALID ||
231
231
it->second .m_result_type == MempoolAcceptResult::ResultType::INVALID);
232
232
233
- CChainState& chainstate{node.chainman ->ActiveChainstate ()};
234
233
const auto res = WITH_LOCK (::cs_main, return AcceptToMemoryPool (tx_pool, chainstate, tx, GetTime (), bypass_limits, /* test_accept= */ false ));
235
234
const bool accepted = res.m_result_type == MempoolAcceptResult::ResultType::VALID;
236
235
SyncWithValidationInterfaceQueue ();
0 commit comments