diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-03-06 23:20:25 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-03-09 22:50:14 +0800 |
commit | b7d93500f13e3054c81196273ebf676ad8ecb5ba (patch) | |
tree | 1b6c60cbb6b235d87f78ff9a814f1a574510215a /miner | |
parent | df72e20cc521b43092b9e3cc684836d4d673e126 (diff) | |
download | dexon-b7d93500f13e3054c81196273ebf676ad8ecb5ba.tar.gz dexon-b7d93500f13e3054c81196273ebf676ad8ecb5ba.tar.zst dexon-b7d93500f13e3054c81196273ebf676ad8ecb5ba.zip |
all: finish integrating Go ethash, delete C++ vendor
Diffstat (limited to 'miner')
-rw-r--r-- | miner/miner.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/miner/miner.go b/miner/miner.go index a91e1ef6b..dc0591b9a 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -164,7 +164,9 @@ func (self *Miner) HashRate() (tot int64) { // aspects of the worker/locking up agents so we can get an accurate // hashrate? for agent := range self.worker.agents { - tot += agent.GetHashRate() + if _, ok := agent.(*CpuAgent); !ok { + tot += agent.GetHashRate() + } } return } |