ethstats: fix ethstats reporting while syncing

This commit is contained in:
Luke Williams 2019-03-11 05:11:40 +01:00
parent c8394400c6
commit 4a14c24ad0

View file

@ -614,6 +614,7 @@ func (s *Service) reportHistory(conn *websocket.Conn, list []uint64) error {
} }
// Ran out of blocks, cut the report short and send // Ran out of blocks, cut the report short and send
history = history[len(history)-i:] history = history[len(history)-i:]
break
} }
// Assemble the history report and send it to the server // Assemble the history report and send it to the server
if len(history) > 0 { if len(history) > 0 {