aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cmd.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 /utils/cmd.go
parent82a2e4fe283d15eaacc554544131bd6669210f79 (diff)
downloadgo-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.gz
go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.zst
go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.zip
Updated to reflect BlockChain changes
Diffstat (limited to 'utils/cmd.go')
-rw-r--r--utils/cmd.go6
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 {