File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ FUZZ_TARGET_INIT(tx_pool, initialize_tx_pool)
311
311
{
312
312
FuzzedDataProvider fuzzed_data_provider (buffer.data (), buffer.size ());
313
313
const auto & node = g_setup->m_node ;
314
- auto & chainstate = node.chainman ->ActiveChainstate ();
314
+ auto & chainstate{ static_cast <DummyChainState&>( node.chainman ->ActiveChainstate ())} ;
315
315
316
316
MockTime (fuzzed_data_provider, chainstate);
317
317
@@ -329,6 +329,8 @@ FUZZ_TARGET_INIT(tx_pool, initialize_tx_pool)
329
329
CTxMemPool tx_pool_{MakeMempool (fuzzed_data_provider, node)};
330
330
MockedTxPool& tx_pool = *static_cast <MockedTxPool*>(&tx_pool_);
331
331
332
+ chainstate.SetMempool (&tx_pool);
333
+
332
334
LIMITED_WHILE (fuzzed_data_provider.ConsumeBool (), 300 )
333
335
{
334
336
const auto mut_tx = ConsumeTransaction (fuzzed_data_provider, txids);
You can’t perform that action at this time.
0 commit comments