Skip to content

Commit

Permalink
p2p: do not disconnect post-verack sendaddrv2 on signet
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Dec 13, 2020
1 parent ade38b6 commit 34dc7ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2511,9 +2511,11 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
}

if (msg_type == NetMsgType::SENDADDRV2) {
if (pfrom.fSuccessfullyConnected) {
if (pfrom.fSuccessfullyConnected && m_chainparams.NetworkIDString() != CBaseChainParams::SIGNET) {
// Disconnect peers that send SENDADDRV2 message after VERACK; this
// must be negotiated between VERSION and VERACK.
// A temporary exception is made for the launch of signet support in
// v0.21.0. After 0.21.0, this should be reverted.
pfrom.fDisconnect = true;
return;
}
Expand Down

0 comments on commit 34dc7ff

Please sign in to comment.