@@ -265,9 +265,9 @@ struct Peer {
265
265
std::unique_ptr<CBloomFilter> m_bloom_filter PT_GUARDED_BY (m_bloom_filter_mutex) GUARDED_BY(m_bloom_filter_mutex){nullptr };
266
266
267
267
mutable RecursiveMutex m_tx_inventory_mutex;
268
- /* * A filter of all the txids and wtxids that the peer has announced to
268
+ /* * A filter of all the (w) txids that the peer has announced to
269
269
* us or we have announced to the peer. We use this to avoid announcing
270
- * the same txid/wtxid to a peer that already has the transaction. */
270
+ * the same (w) txid to a peer that already has the transaction. */
271
271
CRollingBloomFilter m_tx_inventory_known_filter GUARDED_BY (m_tx_inventory_mutex){50000 , 0.000001 };
272
272
/* * Set of transaction ids we still have to announce (txid for
273
273
* non-wtxid-relay peers, wtxid for wtxid-relay peers). We use the
@@ -4089,14 +4089,6 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
4089
4089
4090
4090
const uint256& hash = peer->m_wtxid_relay ? wtxid : txid;
4091
4091
AddKnownTx (*peer, hash);
4092
- if (peer->m_wtxid_relay && txid != wtxid) {
4093
- // Insert txid into m_tx_inventory_known_filter, even for
4094
- // wtxidrelay peers. This prevents re-adding of
4095
- // unconfirmed parents to the recently_announced
4096
- // filter, when a child tx is requested. See
4097
- // ProcessGetData().
4098
- AddKnownTx (*peer, txid);
4099
- }
4100
4092
4101
4093
LOCK (cs_main);
4102
4094
@@ -5748,14 +5740,6 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
5748
5740
vInv.clear ();
5749
5741
}
5750
5742
tx_relay->m_tx_inventory_known_filter .insert (hash);
5751
- if (peer->m_wtxid_relay && hash != txinfo.tx ->GetHash ()) {
5752
- // Insert txid into m_tx_inventory_known_filter, even for
5753
- // wtxidrelay peers. This prevents re-adding of
5754
- // unconfirmed parents to the recently_announced
5755
- // filter, when a child tx is requested. See
5756
- // ProcessGetData().
5757
- tx_relay->m_tx_inventory_known_filter .insert (txinfo.tx ->GetHash ());
5758
- }
5759
5743
}
5760
5744
5761
5745
// Ensure we'll respond to GETDATA requests for anything we've just announced
0 commit comments