diff options
author | Maran <maran.hidskes@gmail.com> | 2014-07-18 18:01:26 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-07-18 18:01:26 +0800 |
commit | 2b9f16802d22b8d743797aecc9bd040a38d6f1f4 (patch) | |
tree | 0c87f826a0e25970c79c7f6d9c45de1ee1c966e6 /utils | |
parent | 44296c0b33de5f6c2ff28c6a0fd528d6ccd04dec (diff) | |
download | dexon-2b9f16802d22b8d743797aecc9bd040a38d6f1f4.tar.gz dexon-2b9f16802d22b8d743797aecc9bd040a38d6f1f4.tar.zst dexon-2b9f16802d22b8d743797aecc9bd040a38d6f1f4.zip |
WIP to expose hashrate to gui
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cmd.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index 1e1599582..638114bbe 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -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 |