Skip to content

Commit

Permalink
backports: Always disconnect from peers older than MIN_PEER_PROTO_VER…
Browse files Browse the repository at this point in the history
…SION
  • Loading branch information
lateminer committed Apr 29, 2024
1 parent 9583bf8 commit 2d226da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5171,7 +5171,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
return false;
}

if (pfrom->nVersion < (chainparams.GetConsensus().IsProtocolV3_1(GetAdjustedTime()) ? PROTOCOL_VERSION : MIN_PEER_PROTO_VERSION))
if (pfrom->nVersion < MIN_PEER_PROTO_VERSION)
{
// disconnect from peers older than this proto version
LogPrintf("peer=%d using obsolete version %i; disconnecting\n", pfrom->id, pfrom->nVersion);
Expand Down

0 comments on commit 2d226da

Please sign in to comment.