mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
doc: improve comments relating to block-relay-only peers
This commit is contained in:
parent
430f489027
commit
937eba91e1
@ -1512,6 +1512,11 @@ void static ProcessGetData(CNode* pfrom, const CChainParams& chainparams, CConnm
|
|||||||
std::deque<CInv>::iterator it = pfrom->vRecvGetData.begin();
|
std::deque<CInv>::iterator it = pfrom->vRecvGetData.begin();
|
||||||
std::vector<CInv> vNotFound;
|
std::vector<CInv> vNotFound;
|
||||||
const CNetMsgMaker msgMaker(pfrom->GetSendVersion());
|
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) {
|
if (pfrom->m_tx_relay != nullptr) {
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user