diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-02-25 00:03:23 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-10-11 14:04:49 +1000 |
commit | 3614819864a84ac32f6d53c6ace79b5e71bc174a (patch) | |
tree | 94cf6c60a71d3da7cb7ed1a6f9e4d0a763cc843e /src/test/fuzz | |
parent | 6f8e442ba61378489a6e2e2ab5bcfbccca1a29ec (diff) | |
download | bitcoin-3614819864a84ac32f6d53c6ace79b5e71bc174a.tar.xz |
txorphange: move orphan workset to txorphanage
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/txorphan.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/fuzz/txorphan.cpp b/src/test/fuzz/txorphan.cpp index 55060f31cf..730e814e1d 100644 --- a/src/test/fuzz/txorphan.cpp +++ b/src/test/fuzz/txorphan.cpp @@ -36,7 +36,6 @@ FUZZ_TARGET_INIT(txorphan, initialize_orphanage) SetMockTime(ConsumeTime(fuzzed_data_provider)); TxOrphanage orphanage; - std::set<uint256> orphan_work_set; std::vector<COutPoint> outpoints; // initial outpoints used to construct transactions later for (uint8_t i = 0; i < 4; i++) { @@ -87,7 +86,7 @@ FUZZ_TARGET_INIT(txorphan, initialize_orphanage) fuzzed_data_provider, [&] { LOCK(g_cs_orphans); - orphanage.AddChildrenToWorkSet(*tx, orphan_work_set); + orphanage.AddChildrenToWorkSet(*tx, peer_id); }, [&] { bool have_tx = orphanage.HaveTx(GenTxid::Txid(tx->GetHash())) || orphanage.HaveTx(GenTxid::Wtxid(tx->GetHash())); |