aboutsummaryrefslogtreecommitdiffstats
path: root/ethminer/miner.go
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-07-18 18:01:08 +0800
committerMaran <maran.hidskes@gmail.com>2014-07-18 18:01:08 +0800
commitdb8170def31e03ecb7086dd257d7c8fce084313f (patch)
treea12fe2de180f8e6a7f12d92832b1be52ad44ad9a /ethminer/miner.go
parent28a146d438b0c11820aef5d9551c6eff929acdec (diff)
downloaddexon-db8170def31e03ecb7086dd257d7c8fce084313f.tar.gz
dexon-db8170def31e03ecb7086dd257d7c8fce084313f.tar.zst
dexon-db8170def31e03ecb7086dd257d7c8fce084313f.zip
WIP to expose hashrate to gui
Diffstat (limited to 'ethminer/miner.go')
-rw-r--r--ethminer/miner.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethminer/miner.go b/ethminer/miner.go
index 71d4b2428..f45615b62 100644
--- a/ethminer/miner.go
+++ b/ethminer/miner.go
@@ -24,6 +24,10 @@ type Miner struct {
quitChan chan bool
}
+func (self Miner) GetPow() *ethchain.PoW {
+ return &self.pow
+}
+
func NewDefaultMiner(coinbase []byte, ethereum ethchain.EthManager) Miner {
reactChan := make(chan ethutil.React, 1) // This is the channel that receives 'updates' when ever a new transaction or block comes in
powChan := make(chan []byte, 1) // This is the channel that receives valid sha hases for a given block