diff --git a/p2p/protocol.go b/p2p/protocol.go index 347e3e95..eebf1a09 100644 --- a/p2p/protocol.go +++ b/p2p/protocol.go @@ -93,7 +93,7 @@ func NewEthProtocol(version uint, opts EthProtocolOptions) ethp2p.Protocol { c.headMutex.RLock() status := eth.StatusPacket{ - ProtocolVersion: 66, + ProtocolVersion: uint32(version), NetworkID: opts.NetworkID, Genesis: opts.GenesisHash, ForkID: forkid.NewID(opts.Genesis.Config, opts.Genesis.ToBlock(), opts.Head.Number, uint64(time.Now().Unix())), diff --git a/p2p/rlpx.go b/p2p/rlpx.go index 6f930d44..daad3a7d 100644 --- a/p2p/rlpx.go +++ b/p2p/rlpx.go @@ -30,9 +30,13 @@ func Dial(n *enode.Node) (*rlpxConn, error) { conn := rlpxConn{ Conn: rlpx.NewConn(fd, n.Pubkey()), - caps: []p2p.Cap{{Name: "eth", Version: 66}}, node: n, logger: log.With().Str("peer", n.URLv4()).Logger(), + caps: []p2p.Cap{ + {Name: "eth", Version: 66}, + {Name: "eth", Version: 67}, + {Name: "eth", Version: 68}, + }, } if conn.ourKey, err = crypto.GenerateKey(); err != nil {