aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/chain_manager.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index f9fb3b3f8..9ed2c1c42 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)