diff options
author | Greg Sanders <gsanders87@gmail.com> | 2024-03-25 10:34:31 -0400 |
---|---|---|
committer | Greg Sanders <gsanders87@gmail.com> | 2024-03-26 08:20:30 -0400 |
commit | defe023f6ec49dd64c6e03880cee0e9299b45762 (patch) | |
tree | 0740ac219f63869ac833d1ae13d39865a6035125 | |
parent | 216d5ff1627be6562312b5afb477078ed8495999 (diff) | |
download | bitcoin-defe023f6ec49dd64c6e03880cee0e9299b45762.tar.xz |
fuzz: add PrioritiseTransaction coverage in diagram checks
-rw-r--r-- | src/test/fuzz/rbf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/fuzz/rbf.cpp b/src/test/fuzz/rbf.cpp index 42008c6ad9..a3138629e2 100644 --- a/src/test/fuzz/rbf.cpp +++ b/src/test/fuzz/rbf.cpp @@ -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 |