Make read of ethash hashrate atomic and update ethash godep

This commit is contained in:
Gustav Simonsson
2015-05-14 03:39:07 +02:00
parent f7fdb4dfbe
commit b24f16fa53
5 changed files with 48 additions and 116 deletions

View File

@ -70,7 +70,7 @@ func (self *Miner) Register(agent Agent) {
}
func (self *Miner) HashRate() int64 {
return self.worker.HashRate()
return self.pow.GetHashrate()
}
func (self *Miner) SetExtra(extra []byte) {