WIP to expose hashrate to gui

This commit is contained in:
Maran
2014-07-18 12:01:08 +02:00
parent 28a146d438
commit db8170def3
2 changed files with 13 additions and 2 deletions

View File

@ -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