WIP to expose hashrate to gui

This commit is contained in:
Maran
2014-07-18 12:01:26 +02:00
parent 44296c0b33
commit 2b9f16802d
2 changed files with 12 additions and 0 deletions

View File

@ -236,6 +236,10 @@ func StartRpc(ethereum *eth.Ethereum, RpcPort int) {
var miner ethminer.Miner
func GetMiner() *ethminer.Miner {
return &miner
}
func StartMining(ethereum *eth.Ethereum) bool {
if !ethereum.Mining {
ethereum.Mining = true