mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-10 15:46:48 -04:00
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."
This commit is contained in:
parent
5c4911e7e7
commit
4b7b58b3fe
1 changed files with 2 additions and 2 deletions
|
@ -2516,8 +2516,8 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Feature negotiation of wtxidrelay should happen between VERSION and
|
// Feature negotiation of wtxidrelay must happen between VERSION and VERACK
|
||||||
// VERACK, to avoid relay problems from switching after a connection is up
|
// to avoid relay problems from switching after a connection is up.
|
||||||
if (msg_type == NetMsgType::WTXIDRELAY) {
|
if (msg_type == NetMsgType::WTXIDRELAY) {
|
||||||
if (pfrom.fSuccessfullyConnected) {
|
if (pfrom.fSuccessfullyConnected) {
|
||||||
// Disconnect peers that send wtxidrelay message after VERACK; this
|
// Disconnect peers that send wtxidrelay message after VERACK; this
|
||||||
|
|
Loading…
Add table
Reference in a new issue