mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
txorphange: move orphan workset to txorphanage
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user