WIP to expose hashrate to gui
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user