From 4a14c24ad010d8fc348d632488364f189cc00437 Mon Sep 17 00:00:00 2001 From: Luke Williams Date: Mon, 11 Mar 2019 05:11:40 +0100 Subject: [PATCH] ethstats: fix ethstats reporting while syncing --- ethstats/ethstats.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 11ec8f96e6..044d91a3f8 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -614,6 +614,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 {