diff --git a/pkg/network/server.go b/pkg/network/server.go index f36677d25..4a1b0ce3e 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -314,7 +314,7 @@ func (s *Server) runProto() { if s.chain.BlockHeight() == prevHeight { // Get a copy of s.peers to avoid holding a lock while sending. for peer := range s.Peers() { - _ = peer.SendPing(s.MkMsg(CMDPing, payload.NewPing(s.id, s.chain.HeaderHeight()))) + _ = peer.SendPing(s.MkMsg(CMDPing, payload.NewPing(s.chain.BlockHeight(), s.id))) } } pingTimer.Reset(s.PingInterval)