Documentation ¶
Index ¶
- type ChainBase
- func (c *ChainBase) Add(blk *block.Block, replay bool, gen bool) error
- func (c *ChainBase) BlockCache() blockcache.BlockCache
- func (c *ChainBase) BlockChain() block.Chain
- func (c *ChainBase) Close()
- func (c *ChainBase) Recover() error
- func (c *ChainBase) SetTxPool(txPool txpool.TxPool)
- func (c *ChainBase) StateDB() db.MVCCDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainBase ¶
type ChainBase struct {
// contains filtered or unexported fields
}
ChainBase will maintain blockchain data for memory and hard disk.
func (*ChainBase) BlockCache ¶
func (c *ChainBase) BlockCache() blockcache.BlockCache
BlockCache return the block cache.
func (*ChainBase) BlockChain ¶
BlockChain return the block chain database.
Click to show internal directories.
Click to hide internal directories.