aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-01-15 16:36:43 +0800
committerGitHub <noreply@github.com>2018-01-15 16:36:43 +0800
commit81ad8f665d3e7598273958d557c531f800eca50f (patch)
tree905179d7f8843910a40d16caad10bb0f444ca4a1 /ethstats
parent3f40b22dac9cb36fdf2baacf4789a52adbb611fd (diff)
parent90e5744d6f54a11b0727ab7583158ab7d72302fd (diff)
downloaddexon-81ad8f665d3e7598273958d557c531f800eca50f.tar
dexon-81ad8f665d3e7598273958d557c531f800eca50f.tar.gz
dexon-81ad8f665d3e7598273958d557c531f800eca50f.tar.bz2
dexon-81ad8f665d3e7598273958d557c531f800eca50f.tar.lz
dexon-81ad8f665d3e7598273958d557c531f800eca50f.tar.xz
dexon-81ad8f665d3e7598273958d557c531f800eca50f.tar.zst
dexon-81ad8f665d3e7598273958d557c531f800eca50f.zip
Merge pull request #15869 from Magicking/ethstats-reporting-fix
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 8204750be..ae7e25265 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 {