diff --git a/pkg/network/server.go b/pkg/network/server.go index 6b043544a..d5ad7f2f9 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -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) }