blkdb

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

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 *BlockTreeDB) ReadTxIndex(txid *util.Hash) (*block.DiskTxPos, error)

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

func (blockTreeDB *BlockTreeDB) WriteTxIndex(txIndexes map[util.Hash]block.DiskTxPos) error

type BlockTreeDBConfig

type BlockTreeDBConfig struct {
	Do *db.DBOption
}

Jump to

Keyboard shortcuts

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