aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist
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
parent49e0267fe76cfd13eaf3e5e26caa637b93dbdd29 (diff)
downloaddexon-2d09e67713757e2a80eb614562c97f962af36cf7.tar.gz
dexon-2d09e67713757e2a80eb614562c97f962af36cf7.tar.zst
dexon-2d09e67713757e2a80eb614562c97f962af36cf7.zip
Updated to new methods
Diffstat (limited to 'cmd/mist')
-rw-r--r--cmd/mist/debugger.go2
-rw-r--r--cmd/mist/gui.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/mist/debugger.go b/cmd/mist/debugger.go
index d7c584eab..a7a286e23 100644
--- a/cmd/mist/debugger.go
+++ b/cmd/mist/debugger.go
@@ -149,7 +149,7 @@ func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, data
self.SetAsm(script)
- block := self.lib.eth.ChainManager().CurrentBlock
+ block := self.lib.eth.ChainManager().CurrentBlock()
env := utils.NewEnv(statedb, block, account.Address(), value)
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")