Update balance label when mining

This commit is contained in:
obscuren
2015-02-13 18:15:23 +01:00
parent 0f3c25b265
commit ce239333d5
4 changed files with 18 additions and 2 deletions

View File

@ -412,7 +412,9 @@ func (gui *Gui) update() {
switch ev := ev.(type) {
case core.NewBlockEvent:
gui.processBlock(ev.Block, false)
gui.setWalletValue(gui.eth.ChainManager().State().GetBalance(gui.address()), nil)
//gui.setWalletValue(gui.eth.ChainManager().State().GetBalance(gui.address()), nil)
balance := ethutil.CurrencyToString(gui.eth.ChainManager().State().GetBalance(gui.address()))
gui.getObjectByName("balanceLabel").Set("text", fmt.Sprintf("%v", balance))
case core.TxPreEvent:
tx := ev.Tx