Documentation ¶
Index ¶
- type TxExistKvDB
- func (t *TxExistKvDB) Close()
- func (t *TxExistKvDB) CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error
- func (t *TxExistKvDB) GetLastSavepoint() (uint64, error)
- func (t *TxExistKvDB) InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error
- func (t *TxExistKvDB) TxExists(txId string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxExistKvDB ¶
TxExistKvDB provider a implementation of `txexistdb.TxExistDB` This implementation provides a key-value based data model
func NewTxExistKvDB ¶
func NewTxExistKvDB(chainId string, dbHandle protocol.DBHandle, logger protocol.Logger) *TxExistKvDB
创建一个txExistKvDB
func (*TxExistKvDB) CommitBlock ¶
func (t *TxExistKvDB) CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error
CommitBlock commits the txId and savepoint in an atomic operation
func (*TxExistKvDB) GetLastSavepoint ¶
func (t *TxExistKvDB) GetLastSavepoint() (uint64, error)
GetLastSavepoint returns the last block height
func (*TxExistKvDB) InitGenesis ¶
func (t *TxExistKvDB) InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error
初始化写入创世块:0号区块
Click to show internal directories.
Click to hide internal directories.