aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/main.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-20 18:03:31 +0800
committerobscuren <geffobscura@gmail.com>2014-10-20 18:03:31 +0800
commit6ea44c466a5c3383dd4e21a57423edbf33a52e6f (patch)
treeda7c995341607f5b9dc362460ed762dc3f8541c2 /ethereum/main.go
parent82a2e4fe283d15eaacc554544131bd6669210f79 (diff)
downloaddexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar
dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.gz
dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.bz2
dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.lz
dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.xz
dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.zst
dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.zip
Updated to reflect BlockChain changes
Diffstat (limited to 'ethereum/main.go')
-rw-r--r--ethereum/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethereum/main.go b/ethereum/main.go
index b8f8ce39a..bff5485df 100644
--- a/ethereum/main.go
+++ b/ethereum/main.go
@@ -60,11 +60,11 @@ func main() {
var block *ethchain.Block
if len(DumpHash) == 0 && DumpNumber == -1 {
- block = ethereum.BlockChain().CurrentBlock
+ block = ethereum.ChainManager().CurrentBlock
} else if len(DumpHash) > 0 {
- block = ethereum.BlockChain().GetBlock(ethutil.Hex2Bytes(DumpHash))
+ block = ethereum.ChainManager().GetBlock(ethutil.Hex2Bytes(DumpHash))
} else {
- block = ethereum.BlockChain().GetBlockByNumber(uint64(DumpNumber))
+ block = ethereum.ChainManager().GetBlockByNumber(uint64(DumpNumber))
}
if block == nil {