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

@ -160,7 +160,7 @@ func (miner *Miner) Mining() bool {
return miner.worker.isRunning()
}
func (miner *Miner) HashRate() uint64 {
func (miner *Miner) Hashrate() uint64 {
if pow, ok := miner.engine.(consensus.PoW); ok {
return uint64(pow.Hashrate())
}