Skip to content

Commit 49b3d3a

Browse files
committed
Clean up FindTxForGetData
Adds back a comment that was unintentionally deleted in the GenTxid refactor.
1 parent 9617a42 commit 49b3d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2393,12 +2393,12 @@ void PeerManagerImpl::ProcessGetBlockData(CNode& pfrom, Peer& peer, const CInv&
23932393

23942394
CTransactionRef PeerManagerImpl::FindTxForGetData(const Peer::TxRelay& tx_relay, const GenTxid& gtxid)
23952395
{
2396+
// If a tx was in the mempool prior to the last INV for this peer, permit the request.
23962397
auto txinfo{std::visit(
23972398
[&](const auto& id) EXCLUSIVE_LOCKS_REQUIRED(NetEventsInterface::g_msgproc_mutex) {
23982399
return m_mempool.info_for_relay(id, tx_relay.m_last_inv_sequence);
23992400
},
24002401
gtxid)};
2401-
24022402
if (txinfo.tx) {
24032403
return std::move(txinfo.tx);
24042404
}

0 commit comments

Comments
 (0)