Skip to content

Commit 937eba9

Browse files
committed
doc: improve comments relating to block-relay-only peers
1 parent 430f489 commit 937eba9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/net_processing.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,11 @@ void static ProcessGetData(CNode* pfrom, const CChainParams& chainparams, CConnm
15121512
std::deque<CInv>::iterator it = pfrom->vRecvGetData.begin();
15131513
std::vector<CInv> vNotFound;
15141514
const CNetMsgMaker msgMaker(pfrom->GetSendVersion());
1515+
1516+
// Note that if we receive a getdata for a MSG_TX or MSG_WITNESS_TX from a
1517+
// block-relay-only outbound peer, we will stop processing further getdata
1518+
// messages from this peer (likely resulting in our peer eventually
1519+
// disconnecting us).
15151520
if (pfrom->m_tx_relay != nullptr) {
15161521
LOCK(cs_main);
15171522

0 commit comments

Comments
 (0)