mirror of https://github.com/poanetwork/quorum.git
parent
31598781f4
commit
f3d1315269
|
@ -583,6 +583,9 @@ func (ethash *Ethash) SetThreads(threads int) {
|
|||
// Hashrate implements PoW, returning the measured rate of the search invocations
|
||||
// per second over the last minute.
|
||||
func (ethash *Ethash) Hashrate() float64 {
|
||||
if(ethash.hashrate == nil){
|
||||
return 0
|
||||
}
|
||||
return ethash.hashrate.Rate1()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue