use proper bound (#4607)

This commit is contained in:
Nishant Das 2020-01-21 23:45:06 +08:00 committed by terence tsao
parent a52f9d4549
commit e96c2f4949

View File

@ -434,7 +434,7 @@ func (s *Service) checkHeaderRange(start uint64, end uint64,
if !s.chainStartData.Chainstarted {
h, ok := headersMap[i]
if !ok {
if err := requestHeaders(i, i+eth1HeaderReqLimit); err != nil {
if err := requestHeaders(i, end); err != nil {
return err
}
// Retry this block.