Skip to content

Commit 096bd37

Browse files
author
MarcoFalke
committed
Merge #20592: doc: update wtxidrelay documentation per BIP339
4b7b58b Update net_processing WTXID documentation per BIP339 (Jon Atack) Pull request description: BIP339 currently states: *The wtxidrelay message MUST be sent in response to a version message from a peer whose protocol version is >= 70016 and prior to sending a verack. A wtxidrelay message received after a verack message MUST be ignored or treated as invalid.* ACKs for top commit: MarcoFalke: ACK 4b7b58b practicalswift: ACK 4b7b58b RiccardoMasutti: ACK 4b7b58b Tree-SHA512: 58ca6b197618cc73c70aa5de0a2d9d89a68b4cad9d5a708278ef17a9d6854d4362bcc384b6d29696642924977204a8fc120b31e91e2d97b6072b7b0d41c9f2dc
2 parents 25bc840 + 4b7b58b commit 096bd37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,8 +2488,8 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
24882488
return;
24892489
}
24902490

2491-
// Feature negotiation of wtxidrelay should happen between VERSION and
2492-
// VERACK, to avoid relay problems from switching after a connection is up
2491+
// Feature negotiation of wtxidrelay must happen between VERSION and VERACK
2492+
// to avoid relay problems from switching after a connection is up.
24932493
if (msg_type == NetMsgType::WTXIDRELAY) {
24942494
if (pfrom.fSuccessfullyConnected) {
24952495
// Disconnect peers that send wtxidrelay message after VERACK; this

0 commit comments

Comments
 (0)