Skip to content

Commit

Permalink
[release-v1.8] p2p: update the required minimum protocol version
Browse files Browse the repository at this point in the history
This is a backport of 92b6b88.
  • Loading branch information
jrick committed Feb 19, 2024
1 parent cb3222c commit 89327b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions p2p/peering.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ var uaVersion = version.String()

// minPver is the minimum protocol version we require remote peers to
// implement.
const minPver = wire.CFilterV2Version
const minPver = wire.RemoveRejectVersion

// Pver is the maximum protocol version implemented by the LocalPeer.
const Pver = wire.InitStateVersion
const Pver = wire.RemoveRejectVersion

// connectTimeout is the amount of time allowed before connecting, peering
// handshake, and protocol negotiation is aborted.
Expand Down Expand Up @@ -757,8 +757,6 @@ func (rp *RemotePeer) readMessages(ctx context.Context) error {
if rp.lp.messageIsMasked(MaskInv) {
rp.lp.receivedInv <- newInMsg(rp, msg)
}
case *wire.MsgReject:
log.Warnf("%v reject(%v, %v, %v): %v", rp.raddr, m.Cmd, m.Code, &m.Hash, m.Reason)
case *wire.MsgGetMiningState:
rp.receivedGetMiningState(ctx)
case *wire.MsgGetInitState:
Expand Down

0 comments on commit 89327b1

Please sign in to comment.