mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
Merge pull request #2116 from nspcc-dev/fix-pings-2.x
network: fix Ping messages
This commit is contained in:
commit
b3a0a8f115
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue