diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-17 19:24:51 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-17 19:24:58 +0800 |
commit | 8135752a32837748e6d4a986912131736b1a0aa0 (patch) | |
tree | 0ad3b6abab8a4b0c013844f93ca665526d2a567a /cmd/mist/gui.go | |
parent | 164de5e22be39ba2bdc58f84f72572252634e7e1 (diff) | |
download | go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.gz go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.zst go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.zip |
"centralised" mining to backend. Closes #323
Diffstat (limited to 'cmd/mist/gui.go')
-rw-r--r-- | cmd/mist/gui.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go index 208b553d2..9ce6ba650 100644 --- a/cmd/mist/gui.go +++ b/cmd/mist/gui.go @@ -41,7 +41,6 @@ import ( "github.com/ethereum/go-ethereum/ethdb" "github.com/ethereum/go-ethereum/ethutil" "github.com/ethereum/go-ethereum/logger" - "github.com/ethereum/go-ethereum/miner" "github.com/ethereum/go-ethereum/ui/qt/qwhisper" "github.com/ethereum/go-ethereum/xeth" "github.com/obscuren/qml" @@ -81,8 +80,6 @@ type Gui struct { config *ethutil.ConfigManager plugins map[string]plugin - - miner *miner.Miner } // Create GUI, but doesn't start it @@ -454,7 +451,7 @@ func (gui *Gui) update() { case <-generalUpdateTicker.C: statusText := "#" + gui.eth.ChainManager().CurrentBlock().Number().String() lastBlockLabel.Set("text", statusText) - miningLabel.Set("text", "Mining @ "+strconv.FormatInt(gui.uiLib.miner.HashRate(), 10)+"/Khash") + miningLabel.Set("text", "Mining @ "+strconv.FormatInt(gui.uiLib.Miner().HashRate(), 10)+"/Khash") /* blockLength := gui.eth.BlockPool().BlocksProcessed |