diff --git a/src/main.cpp b/src/main.cpp index 746ebbdcb..274116e03 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4903,7 +4903,7 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam if (mi != mapRelay.end()) { pfrom->PushMessage(NetMsgType::TX, *mi->second); push = true; - } else { + } else if (pfrom->timeLastMempoolReq) { auto txinfo = mempool.info(inv.hash); // To protect privacy, do not answer getdata using the mempool when // that TX couldn't have been INVed in reply to a MEMPOOL request.