소스 검색

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

ethstats: Fix ethstats reporting while syncing
Péter Szilágyi 7 년 전
부모
커밋
81ad8f665d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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 {