From 6ea44c466a5c3383dd4e21a57423edbf33a52e6f Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 20 Oct 2014 12:03:31 +0200 Subject: Updated to reflect BlockChain changes --- ethereum/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ethereum/main.go') 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 { -- cgit v1.2.3