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 14, 2020
1 parent 4a7daa9 commit b19b105
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 @@ -2524,8 +2524,10 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
// BIP155 defines feature negotiation of addrv2 and sendaddrv2, which must happen
// between VERSION and VERACK.
if (msg_type == NetMsgType::SENDADDRV2) {
if (pfrom.fSuccessfullyConnected) {
if (pfrom.fSuccessfullyConnected && !m_chainparams.GetConsensus().signet_blocks) {
// Disconnect peers that send a SENDADDRV2 message after VERACK.
// A temporary exception is made for bootstrapping signet support in v0.21.0.
// After 0.21.0, this can be reverted.
pfrom.fDisconnect = true;
return;
}
Expand Down

0 comments on commit b19b105

Please sign in to comment.