aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/gui.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-18 20:17:24 +0800
committerobscuren <geffobscura@gmail.com>2014-12-18 20:17:24 +0800
commit2d09e67713757e2a80eb614562c97f962af36cf7 (patch)
tree896f70825f9048ec569ad78ae77018435210b9e9 /cmd/mist/gui.go
parent49e0267fe76cfd13eaf3e5e26caa637b93dbdd29 (diff)
downloadgo-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.tar.gz
go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.tar.zst
go-tangerine-2d09e67713757e2a80eb614562c97f962af36cf7.zip
Updated to new methods
Diffstat (limited to 'cmd/mist/gui.go')
-rw-r--r--cmd/mist/gui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mist/gui.go b/cmd/mist/gui.go
index fe066e994..773688ffc 100644
--- a/cmd/mist/gui.go
+++ b/cmd/mist/gui.go
@@ -246,7 +246,7 @@ func (gui *Gui) CreateAndSetPrivKey() (string, string, string, string) {
}
func (gui *Gui) setInitialChain(ancientBlocks bool) {
- sBlk := gui.eth.ChainManager().LastBlockHash
+ sBlk := gui.eth.ChainManager().LastBlockHash()
blk := gui.eth.ChainManager().GetBlock(sBlk)
for ; blk != nil; blk = gui.eth.ChainManager().GetBlock(sBlk) {
sBlk = blk.PrevHash
@@ -468,7 +468,7 @@ func (gui *Gui) update() {
case <-peerUpdateTicker.C:
gui.setPeerInfo()
case <-generalUpdateTicker.C:
- statusText := "#" + gui.eth.ChainManager().CurrentBlock.Number.String()
+ statusText := "#" + gui.eth.ChainManager().CurrentBlock().Number.String()
lastBlockLabel.Set("text", statusText)
miningLabel.Set("text", "Mining @ "+strconv.FormatInt(gui.uiLib.miner.GetPow().GetHashrate(), 10)+"Khash")