all: fix miner hashRate -> hashrate on API calls

This commit is contained in:
Péter Szilágyi
2021-03-31 10:56:51 +03:00
parent 4a37ae510e
commit 55300d4fdb
6 changed files with 8 additions and 18 deletions

View File

@ -754,7 +754,7 @@ func (s *Service) reportStats(conn *connWrapper) error {
fullBackend, ok := s.backend.(fullNodeBackend)
if ok {
mining = fullBackend.Miner().Mining()
hashrate = int(fullBackend.Miner().HashRate())
hashrate = int(fullBackend.Miner().Hashrate())
sync := fullBackend.Downloader().Progress()
syncing = fullBackend.CurrentHeader().Number.Uint64() >= sync.HighestBlock