diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2020-06-01 20:06:27 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-08 18:29:56 -0700 |
commit | c4626bcd211af08c85b6567ef07eeae333edba47 (patch) | |
tree | 140119b7bd141f2f5e34d2479b3063dfc004d188 /src/net_processing.cpp | |
parent | 43f02ccbff9b137d59458da7a8afdb0bf80e127f (diff) | |
download | bitcoin-c4626bcd211af08c85b6567ef07eeae333edba47.tar.xz |
Drop setInventoryTxToSend based filtering
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index dc28d8cca5..c8d03da659 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1634,14 +1634,6 @@ void static ProcessGetBlockData(CNode& pfrom, const CChainParams& chainparams, c //! Determine whether or not a peer can request a transaction, and return it (or nullptr if not found or not allowed). CTransactionRef static FindTxForGetData(const CNode& peer, const uint256& txid, const std::chrono::seconds mempool_req, const std::chrono::seconds now) LOCKS_EXCLUDED(cs_main) { - // Check if the requested transaction is so recent that we're just - // about to announce it to the peer; if so, they certainly shouldn't - // know we already have it. - { - LOCK(peer.m_tx_relay->cs_tx_inventory); - if (peer.m_tx_relay->setInventoryTxToSend.count(txid)) return {}; - } - auto txinfo = mempool.info(txid); if (txinfo.tx) { // If a TX could have been INVed in reply to a MEMPOOL request, |