mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 09:19:08 +00:00
network: make GetHeaders best-effort
Be a nice neighbor, try to reply with whatever headers we have, don't fail completely because of a single missing header. Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
9599fba24f
commit
90b6a42331
1 changed files with 1 additions and 1 deletions
|
@ -1120,7 +1120,7 @@ func (s *Server) handleGetHeadersCmd(p Peer, gh *payload.GetBlockByIndex) error
|
|||
}
|
||||
header, err := s.chain.GetHeader(hash)
|
||||
if err != nil {
|
||||
break
|
||||
continue
|
||||
}
|
||||
resp.Hdrs = append(resp.Hdrs, header)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue