This commit is contained in:
obscuren
2015-03-20 17:42:09 +01:00
parent a59bb053f4
commit 54dac59285
4 changed files with 15 additions and 3 deletions

View File

@ -57,7 +57,7 @@ type Agent interface {
SetWorkCh(chan<- Work)
Stop()
Start()
Pow() pow.PoW
GetHashRate() int64
}
type worker struct {
@ -272,7 +272,7 @@ func (self *worker) commitTransaction(tx *types.Transaction) error {
func (self *worker) HashRate() int64 {
var tot int64
for _, agent := range self.agents {
tot += agent.Pow().GetHashrate()
tot += agent.GetHashRate()
}
return tot