Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BigFilterDB ¶
type BigFilterDB interface {
// InitGenesis 初始化,写入一个创世区块:0号区块
InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error
// CommitBlock commits the txId and savepoint in an atomic operation
CommitBlock(blockWithRWSet *serialization.BlockWithSerializedInfo, isCache bool) error
// GetLastSavepoint returns the last block height
GetLastSavepoint() (uint64, error)
// TxExists if not exists returns (false,false,nil) . if exists return (true,_,nil).
// If probably exists return (false,true,nil)
TxExists(txId string) (bool, bool, error)
// Close is used to close database
Close()
}
BigFilterDB provides handle to block and tx instances
Click to show internal directories.
Click to hide internal directories.