mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
fuzz: don't allow adding duplicate transactions to the mempool
This commit is contained in:
parent
2a07c4662d
commit
cc15c5bfd1
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ FUZZ_TARGET(partially_downloaded_block, .init = initialize_pdb)
|
|||
available.insert(i);
|
||||
}
|
||||
|
||||
if (add_to_mempool) {
|
||||
if (add_to_mempool && !pool.exists(GenTxid::Txid(tx->GetHash()))) {
|
||||
LOCK2(cs_main, pool.cs);
|
||||
pool.addUnchecked(ConsumeTxMemPoolEntry(fuzzed_data_provider, *tx));
|
||||
available.insert(i);
|
||||
|
|
Loading…
Add table
Reference in a new issue