aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2019-08-13 10:08:48 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2019-09-04 14:58:36 -0400
commit937eba91e1550bc3038dc541c236ac83e0a0e6d5 (patch)
tree69559c38688339b98deac13ff565b7d4df573c19
parent430f489027f15c1e4948ea4378954df24e3fee88 (diff)
doc: improve comments relating to block-relay-only peers
-rw-r--r--src/net_processing.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 657109ba52..baf3bc7448 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -1512,6 +1512,11 @@ void static ProcessGetData(CNode* pfrom, const CChainParams& chainparams, CConnm
std::deque<CInv>::iterator it = pfrom->vRecvGetData.begin();
std::vector<CInv> vNotFound;
const CNetMsgMaker msgMaker(pfrom->GetSendVersion());
+
+ // Note that if we receive a getdata for a MSG_TX or MSG_WITNESS_TX from a
+ // block-relay-only outbound peer, we will stop processing further getdata
+ // messages from this peer (likely resulting in our peer eventually
+ // disconnecting us).
if (pfrom->m_tx_relay != nullptr) {
LOCK(cs_main);