mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
fuzz: add PrioritiseTransaction coverage in diagram checks
This commit is contained in:
parent
216d5ff162
commit
defe023f6e
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ FUZZ_TARGET(package_rbf, .init = initialize_package_rbf)
|
|||
}
|
||||
mempool_txs.emplace_back(*child);
|
||||
pool.addUnchecked(ConsumeTxMemPoolEntry(fuzzed_data_provider, mempool_txs.back()));
|
||||
|
||||
if (fuzzed_data_provider.ConsumeBool()) {
|
||||
pool.PrioritiseTransaction(mempool_txs.back().GetHash().ToUint256(), fuzzed_data_provider.ConsumeIntegralInRange<int32_t>(-100000, 100000));
|
||||
}
|
||||
}
|
||||
|
||||
// Pick some transactions at random to be the direct conflicts
|
||||
|
|
Loading…
Add table
Reference in a new issue