From 54dac59285ccc6a3af47201479ca556da2899e93 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 20 Mar 2015 17:42:09 +0100 Subject: wip --- miner/worker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miner/worker.go') diff --git a/miner/worker.go b/miner/worker.go index 63d1bfa0b..ae6782aca 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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 -- cgit v1.2.3