Skip to content

Commit 4b7b58b

Browse files
committed
Update net_processing WTXID documentation per BIP339
as 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."
1 parent 5c4911e commit 4b7b58b

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
@@ -2516,8 +2516,8 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
25162516
return;
25172517
}
25182518

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

0 commit comments

Comments
 (0)