diff options
author | Magicking <s@6120.eu> | 2018-01-13 00:01:41 +0800 |
---|---|---|
committer | Magicking <s@6120.eu> | 2018-01-13 01:30:38 +0800 |
commit | 90e5744d6f54a11b0727ab7583158ab7d72302fd (patch) | |
tree | c866b7736f4851eae3a9f7b922907947b81b8622 | |
parent | c786f75389121c29d4380c53a013759254457776 (diff) | |
download | dexon-90e5744d6f54a11b0727ab7583158ab7d72302fd.tar.gz dexon-90e5744d6f54a11b0727ab7583158ab7d72302fd.tar.zst dexon-90e5744d6f54a11b0727ab7583158ab7d72302fd.zip |
ethstats: Fix ethstats reporting while syncing
-rw-r--r-- | ethstats/ethstats.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 7065d7162..3d370bfdc 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -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 { |