We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacd852 commit 0e20cfeCopy full SHA for 0e20cfe
src/net_processing.cpp
@@ -2506,6 +2506,12 @@ void ProcessMessage(
2506
// Feature negotiation of wtxidrelay should happen between VERSION and
2507
// VERACK, to avoid relay problems from switching after a connection is up
2508
if (msg_type == NetMsgType::WTXIDRELAY) {
2509
+ if (pfrom.fSuccessfullyConnected) {
2510
+ // Disconnect peers that send wtxidrelay message after VERACK; this
2511
+ // must be negotiated between VERSION and VERACK.
2512
+ pfrom.fDisconnect = true;
2513
+ return;
2514
+ }
2515
if (pfrom.nVersion >= WTXID_RELAY_VERSION) {
2516
LOCK(cs_main);
2517
if (!State(pfrom.GetId())->m_wtxid_relay) {
0 commit comments