diff --git a/core/chain_manager.go b/core/chain_manager.go index f9fb3b3f82..9ed2c1c424 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -137,6 +137,10 @@ func (bc *ChainManager) NewBlock(coinbase []byte) *types.Block { return block } +func (self *ChainManager) Status() (td *big.Int, currentBlock []byte, genesisBlock []byte) { + return self.TD, self.CurrentBlock.Hash(), self.Genesis().Hash() +} + func (bc *ChainManager) Reset() { AddTestNetFunds(bc.genesisBlock)