adapt chain_manager to eth protocol interface
- add Status() to return td, currentblock hash, genesis hash - GetChainHashesFromHash -> GetBlockHashesFromHash
This commit is contained in:
parent
01dc1c1394
commit
7b39cc83cc
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue