Skip to content

Commit

Permalink
test: change m_submitted_in_package input to fuzz data provider boo…
Browse files Browse the repository at this point in the history
…lean

In reality some mempool transaction might be submitted in a package,
so change m_submitted_in_package to fuzz data provider boolean just like
m_has_no_mempool_parents.
  • Loading branch information
ismaelsadeeq committed Dec 6, 2023
1 parent a531964 commit 76d0c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/fuzz/policy_estimator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ FUZZ_TARGET(policy_estimator, .init = initialize_policy_estimator)
const auto tx_info = NewMempoolTransactionInfo(entry.GetSharedTx(), entry.GetFee(),
entry.GetTxSize(), entry.GetHeight(),
/* m_mempool_limit_bypassed */ false,
/* m_submitted_in_package */ false,
/* m_submitted_in_package */ fuzzed_data_provider.ConsumeBool(),
/* m_chainstate_is_current */ true,
/* m_has_no_mempool_parents */ fuzzed_data_provider.ConsumeBool());
block_policy_estimator.processTransaction(tx_info);
Expand Down

0 comments on commit 76d0c07

Please sign in to comment.