diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-05-31 20:34:27 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-06-06 02:02:23 +0200 |
commit | e9b4780b292122fd727426471f025ec3d3eb7b08 (patch) | |
tree | a388f45ecccc9ce68c36e0bbee91d01e62eb43e6 | |
parent | dbfb426b96fbd79fb76734c6b747ef8ee10ad5ab (diff) |
Optimization: don't check the mempool at all if no mempool req ever
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index bf0f0d8964..68368e402b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4516,7 +4516,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. |