Skip to content

Commit

Permalink
Optimization: don't check the mempool at all if no mempool req ever
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Jun 6, 2016
1 parent dbfb426 commit e9b4780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e9b4780

Please sign in to comment.