Explorar o código

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

ethstats: Fix ethstats reporting while syncing
Péter Szilágyi %!s(int64=7) %!d(string=hai) anos
pai
achega
81ad8f665d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      ethstats/ethstats.go

+ 1 - 0
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 {