Documentation ¶
Overview ¶
Package bigfilterdb package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigFilterDB ¶
type BigFilterDB interface { // InitGenesis // @Description: 初始化,写入一个创世区块:0号区块 // @param genesisBlock // @return error InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error // CommitBlock // @Description: commits the txId and savepoint in an atomic operation // @param blockWithRWSet // @param isCache // @return error CommitBlock(blockWithRWSet *serialization.BlockWithSerializedInfo, isCache bool) error // GetLastSavepoint // @Description: returns the last block height // @return uint64 // @return error GetLastSavepoint() (uint64, error) // TxExists // @Description: if not exists returns (false,false,nil) . if exists return (true,_,nil). // If probably exists return (false,true,nil) // @param txId // @return bool // @return bool // @return error TxExists(txId string) (bool, bool, error) // Close // @Description: is used to close database Close() // ImportTxID // @Description: import data from snapshot to db // @param txId // @param value // @return error ImportTxID(txId, value []byte) error // ImportSetSavePoint // @Description: set up savePoint when import snapshot // @param height // @return error ImportSetSavePoint(height uint64) error }
BigFilterDB provides handle to block and tx instances
Directories ¶
Path | Synopsis |
---|---|
Package bigfilterkvdb package @Description:
|
Package bigfilterkvdb package @Description: |
Click to show internal directories.
Click to hide internal directories.