mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-04 04:02:23 +02:00
test: change m_submitted_in_package
input to fuzz data provider boolean
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.
This commit is contained in:
parent
5615e16b70
commit
b1318dcc56
@ -45,12 +45,14 @@ FUZZ_TARGET(policy_estimator, .init = initialize_policy_estimator)
|
||||
}
|
||||
const CTransaction tx{*mtx};
|
||||
const CTxMemPoolEntry& entry = ConsumeTxMemPoolEntry(fuzzed_data_provider, tx);
|
||||
const auto tx_submitted_in_package = fuzzed_data_provider.ConsumeBool();
|
||||
const auto tx_has_mempool_parents = fuzzed_data_provider.ConsumeBool();
|
||||
const auto tx_info = NewMempoolTransactionInfo(entry.GetSharedTx(), entry.GetFee(),
|
||||
entry.GetTxSize(), entry.GetHeight(),
|
||||
/*mempool_limit_bypassed=*/false,
|
||||
/*submitted_in_package=*/false,
|
||||
tx_submitted_in_package,
|
||||
/*chainstate_is_current=*/true,
|
||||
/*has_no_mempool_parents=*/fuzzed_data_provider.ConsumeBool());
|
||||
tx_has_mempool_parents);
|
||||
block_policy_estimator.processTransaction(tx_info);
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
(void)block_policy_estimator.removeTx(tx.GetHash());
|
||||
|
Loading…
x
Reference in New Issue
Block a user