Merge pull request #2115 from nspcc-dev/fix-ping-messages
network: fix Ping messages
This commit is contained in:
commit
79bdf9b98f
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ func (s *Server) runProto() {
|
||||||
if s.chain.BlockHeight() == prevHeight {
|
if s.chain.BlockHeight() == prevHeight {
|
||||||
// Get a copy of s.peers to avoid holding a lock while sending.
|
// Get a copy of s.peers to avoid holding a lock while sending.
|
||||||
for peer := range s.Peers() {
|
for peer := range s.Peers() {
|
||||||
_ = peer.SendPing(NewMessage(CMDPing, payload.NewPing(s.id, s.chain.HeaderHeight())))
|
_ = peer.SendPing(NewMessage(CMDPing, payload.NewPing(s.chain.BlockHeight(), s.id)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pingTimer.Reset(s.PingInterval)
|
pingTimer.Reset(s.PingInterval)
|
||||||
|
|
Loading…
Reference in a new issue