diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-20 18:03:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-20 18:03:31 +0800 |
commit | 6ea44c466a5c3383dd4e21a57423edbf33a52e6f (patch) | |
tree | da7c995341607f5b9dc362460ed762dc3f8541c2 /ethereum/main.go | |
parent | 82a2e4fe283d15eaacc554544131bd6669210f79 (diff) | |
download | dexon-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.go | 6 |
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 { |