diff options
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 { |