aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-21 00:42:09 +0800
committerobscuren <geffobscura@gmail.com>2015-03-21 00:42:09 +0800
commit54dac59285ccc6a3af47201479ca556da2899e93 (patch)
tree8f753059c4f1799046fa10a861884944a5f453fc /miner/worker.go
parenta59bb053f4d2a4a28341c645c051c4c323581a1b (diff)
downloaddexon-54dac59285ccc6a3af47201479ca556da2899e93.tar.gz
dexon-54dac59285ccc6a3af47201479ca556da2899e93.tar.zst
dexon-54dac59285ccc6a3af47201479ca556da2899e93.zip
wip
Diffstat (limited to 'miner/worker.go')
-rw-r--r--miner/worker.go4
1 files changed, 2 insertions, 2 deletions
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