Skip to content

Commit

Permalink
net: Always disconnect from peers older than MIN_PEER_PROTO_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Apr 27, 2024
1 parent 2dbc854 commit 54384f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3619,7 +3619,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
return;
}

if (nVersion < (Params().GetConsensus().IsProtocolV3_1(GetAdjustedTimeSeconds()) ? OLD_VERSION : MIN_PEER_PROTO_VERSION)) {
if (nVersion < MIN_PEER_PROTO_VERSION) {
// disconnect from peers older than this proto version
LogPrint(BCLog::NET, "peer=%d using obsolete version %i; disconnecting\n", pfrom.GetId(), nVersion);
pfrom.fDisconnect = true;
Expand Down

0 comments on commit 54384f5

Please sign in to comment.