aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
diff options
context:
space:
mode:
authorMagicking <s@6120.eu>2018-01-13 00:01:41 +0800
committerMagicking <s@6120.eu>2018-01-13 01:30:38 +0800
commit90e5744d6f54a11b0727ab7583158ab7d72302fd (patch)
treec866b7736f4851eae3a9f7b922907947b81b8622 /ethstats
parentc786f75389121c29d4380c53a013759254457776 (diff)
downloaddexon-90e5744d6f54a11b0727ab7583158ab7d72302fd.tar.gz
dexon-90e5744d6f54a11b0727ab7583158ab7d72302fd.tar.zst
dexon-90e5744d6f54a11b0727ab7583158ab7d72302fd.zip
ethstats: Fix ethstats reporting while syncing
Diffstat (limited to 'ethstats')
-rw-r--r--ethstats/ethstats.go1
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 {