Skip to content

Commit c4626bc

Browse files
committed
Drop setInventoryTxToSend based filtering
1 parent 43f02cc commit c4626bc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/net_processing.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,14 +1634,6 @@ void static ProcessGetBlockData(CNode& pfrom, const CChainParams& chainparams, c
16341634
//! Determine whether or not a peer can request a transaction, and return it (or nullptr if not found or not allowed).
16351635
CTransactionRef static FindTxForGetData(const CNode& peer, const uint256& txid, const std::chrono::seconds mempool_req, const std::chrono::seconds now) LOCKS_EXCLUDED(cs_main)
16361636
{
1637-
// Check if the requested transaction is so recent that we're just
1638-
// about to announce it to the peer; if so, they certainly shouldn't
1639-
// know we already have it.
1640-
{
1641-
LOCK(peer.m_tx_relay->cs_tx_inventory);
1642-
if (peer.m_tx_relay->setInventoryTxToSend.count(txid)) return {};
1643-
}
1644-
16451637
auto txinfo = mempool.info(txid);
16461638
if (txinfo.tx) {
16471639
// If a TX could have been INVed in reply to a MEMPOOL request,

0 commit comments

Comments
 (0)