aboutsummaryrefslogtreecommitdiffstats
path: root/miner/agent.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/agent.go
parenta59bb053f4d2a4a28341c645c051c4c323581a1b (diff)
downloadgo-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.tar
go-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.tar.gz
go-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.tar.bz2
go-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.tar.lz
go-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.tar.xz
go-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.tar.zst
go-tangerine-54dac59285ccc6a3af47201479ca556da2899e93.zip
wip
Diffstat (limited to 'miner/agent.go')
-rw-r--r--miner/agent.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/miner/agent.go b/miner/agent.go
index 6865d5a08..64491e04c 100644
--- a/miner/agent.go
+++ b/miner/agent.go
@@ -79,3 +79,7 @@ func (self *CpuMiner) mine(block *types.Block) {
self.returnCh <- Work{block.Number().Uint64(), nonce, mixDigest, seedHash}
}
}
+
+func (self *CpuMiner) GetHashRate() int64 {
+ return self.pow.GetHashrate()
+}