Merge pull request #15869 from Magicking/ethstats-reporting-fix

ethstats: Fix ethstats reporting while syncing
This commit is contained in:
Péter Szilágyi 2018-01-15 10:36:43 +02:00 committed by GitHub
commit 81ad8f665d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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