aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-12-07 19:23:16 +0100
committerJon Atack <jon@atack.com>2020-12-07 19:27:00 +0100
commit4b7b58b3fef5b9566a475871c441ed6ae73af89e (patch)
tree182b1540129180d1143f8fbd5d443f714aea10dc /src/net_processing.cpp
parent5c4911e7e7523fb7643da209254bbc2ef7898d2e (diff)
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."
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 1b4a05f0b6..3600ac7c62 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -2516,8 +2516,8 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
return;
}
- // Feature negotiation of wtxidrelay should happen between VERSION and
- // VERACK, to avoid relay problems from switching after a connection is up
+ // Feature negotiation of wtxidrelay must happen between VERSION and VERACK
+ // to avoid relay problems from switching after a connection is up.
if (msg_type == NetMsgType::WTXIDRELAY) {
if (pfrom.fSuccessfullyConnected) {
// Disconnect peers that send wtxidrelay message after VERACK; this