Documentation ¶
Index ¶
- func InitBlockTreeDB(uc *BlockTreeDBConfig)
- type BlockTreeDB
- func (blockTreeDB *BlockTreeDB) LoadBlockIndexGuts(blkIdxMap map[util.Hash]*blockindex.BlockIndex, params *model.BitcoinParams) bool
- func (blockTreeDB *BlockTreeDB) ReadBlockFileInfo(file int32) (*block.BlockFileInfo, error)
- func (blockTreeDB *BlockTreeDB) ReadFlag(name string) bool
- func (blockTreeDB *BlockTreeDB) ReadLastBlockFile() (int32, error)
- func (blockTreeDB *BlockTreeDB) ReadReindexing() bool
- func (blockTreeDB *BlockTreeDB) ReadTxIndex(txid *util.Hash) (*block.DiskTxPos, error)
- func (blockTreeDB *BlockTreeDB) WriteBatchSync(fileInfoList map[int32]*block.BlockFileInfo, lastFile int, ...) error
- func (blockTreeDB *BlockTreeDB) WriteFlag(name string, value bool) error
- func (blockTreeDB *BlockTreeDB) WriteReindexing(reindexing bool) error
- func (blockTreeDB *BlockTreeDB) WriteTxIndex(txIndexes map[util.Hash]block.DiskTxPos) error
- type BlockTreeDBConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBlockTreeDB ¶
func InitBlockTreeDB(uc *BlockTreeDBConfig)
Types ¶
type BlockTreeDB ¶
type BlockTreeDB struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *BlockTreeDB
func (*BlockTreeDB) LoadBlockIndexGuts ¶
func (blockTreeDB *BlockTreeDB) LoadBlockIndexGuts(blkIdxMap map[util.Hash]*blockindex.BlockIndex, params *model.BitcoinParams) bool
func (*BlockTreeDB) ReadBlockFileInfo ¶
func (blockTreeDB *BlockTreeDB) ReadBlockFileInfo(file int32) (*block.BlockFileInfo, error)
func (*BlockTreeDB) ReadFlag ¶
func (blockTreeDB *BlockTreeDB) ReadFlag(name string) bool
func (*BlockTreeDB) ReadLastBlockFile ¶
func (blockTreeDB *BlockTreeDB) ReadLastBlockFile() (int32, error)
func (*BlockTreeDB) ReadReindexing ¶
func (blockTreeDB *BlockTreeDB) ReadReindexing() bool
func (*BlockTreeDB) ReadTxIndex ¶
func (*BlockTreeDB) WriteBatchSync ¶
func (blockTreeDB *BlockTreeDB) WriteBatchSync(fileInfoList map[int32]*block.BlockFileInfo, lastFile int, blockIndexes []*blockindex.BlockIndex) error
func (*BlockTreeDB) WriteFlag ¶
func (blockTreeDB *BlockTreeDB) WriteFlag(name string, value bool) error
func (*BlockTreeDB) WriteReindexing ¶
func (blockTreeDB *BlockTreeDB) WriteReindexing(reindexing bool) error
func (*BlockTreeDB) WriteTxIndex ¶
type BlockTreeDBConfig ¶
Click to show internal directories.
Click to hide internal directories.