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 /utils | |
parent | 82a2e4fe283d15eaacc554544131bd6669210f79 (diff) | |
download | dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.gz dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.zst dexon-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.zip |
Updated to reflect BlockChain changes
Diffstat (limited to 'utils')
-rw-r--r-- | utils/cmd.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index 060e8067b..09898665f 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -169,7 +169,7 @@ func StartEthereum(ethereum *eth.Ethereum, UseSeed bool) { } func ShowGenesis(ethereum *eth.Ethereum) { - logger.Infoln(ethereum.BlockChain().Genesis()) + logger.Infoln(ethereum.ChainManager().Genesis()) exit(nil) } @@ -310,12 +310,12 @@ func StopMining(ethereum *eth.Ethereum) bool { // Replay block func BlockDo(ethereum *eth.Ethereum, hash []byte) error { - block := ethereum.BlockChain().GetBlock(hash) + block := ethereum.ChainManager().GetBlock(hash) if block == nil { return fmt.Errorf("unknown block %x", hash) } - parent := ethereum.BlockChain().GetBlock(block.PrevHash) + parent := ethereum.ChainManager().GetBlock(block.PrevHash) _, err := ethereum.StateManager().ApplyDiff(parent.State(), parent, block) if err != nil { |