chainbase

package
v3.0.6+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2019 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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 New

func New(conf *common.Config) (*ChainBase, error)

New will return a ChainBase.

func (*ChainBase) BlockCache

func (c *ChainBase) BlockCache() blockcache.BlockCache

BlockCache return the block cache.

func (*ChainBase) BlockChain

func (c *ChainBase) BlockChain() block.Chain

BlockChain return the block chain database.

func (*ChainBase) Close

func (c *ChainBase) Close()

Close will close the chainbase.

func (*ChainBase) SetTxPool

func (c *ChainBase) SetTxPool(txPool txpool.TxPool)

SetTxPool will inject the tx pool for chainbase.

func (*ChainBase) StateDB

func (c *ChainBase) StateDB() db.MVCCDB

StateDB return the state database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL