Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 Changes in this version type BlockKvDB + func (b *BlockKvDB) CompactRange() error + func (b *BlockKvDB) GetDbType() string v3.0.0 Dec 23, 2022 Changes in this version + var DbType_Mysql = "mysql" + type BlockKvDB struct + func NewBlockKvDB(chainId string, dbHandle protocol.DBHandle, logger protocol.Logger, ...) *BlockKvDB + func (b *BlockKvDB) BlockExists(blockHash []byte) (bool, error) + func (b *BlockKvDB) Close() + func (b *BlockKvDB) CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error + func (b *BlockKvDB) CommitCache(blockInfo *serialization.BlockWithSerializedInfo) error + func (b *BlockKvDB) CommitDB(blockInfo *serialization.BlockWithSerializedInfo) error + func (b *BlockKvDB) GetArchivedPivot() (uint64, error) + func (b *BlockKvDB) GetBlock(height uint64) (*commonPb.Block, error) + func (b *BlockKvDB) GetBlockByHash(blockHash []byte) (*commonPb.Block, error) + func (b *BlockKvDB) GetBlockByTx(txId string) (*commonPb.Block, error) + func (b *BlockKvDB) GetBlockHeaderByHeight(height uint64) (*commonPb.BlockHeader, error) + func (b *BlockKvDB) GetBlockIndex(height uint64) (*storePb.StoreInfo, error) + func (b *BlockKvDB) GetBlockMetaIndex(height uint64) (*storePb.StoreInfo, error) + func (b *BlockKvDB) GetFilteredBlock(height uint64) (*storePb.SerializedBlock, error) + func (b *BlockKvDB) GetHeightByHash(blockHash []byte) (uint64, error) + func (b *BlockKvDB) GetLastBlock() (*commonPb.Block, error) + func (b *BlockKvDB) GetLastConfigBlock() (*commonPb.Block, error) + func (b *BlockKvDB) GetLastConfigBlockHeight() (uint64, error) + func (b *BlockKvDB) GetLastSavepoint() (uint64, error) + func (b *BlockKvDB) GetTx(txId string) (*commonPb.Transaction, error) + func (b *BlockKvDB) GetTxConfirmedTime(txId string) (int64, error) + func (b *BlockKvDB) GetTxHeight(txId string) (uint64, error) + func (b *BlockKvDB) GetTxIndex(txId string) (*storePb.StoreInfo, error) + func (b *BlockKvDB) GetTxInfoOnly(txId string) (*storePb.TransactionStoreInfo, error) + func (b *BlockKvDB) GetTxWithBlockInfo(txId string) (*storePb.TransactionStoreInfo, error) + func (b *BlockKvDB) InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error + func (b *BlockKvDB) RestoreBlocks(blockInfos []*serialization.BlockWithSerializedInfo) error + func (b *BlockKvDB) ShrinkBlocks(startHeight uint64, endHeight uint64) (map[uint64][]string, error) + func (b *BlockKvDB) TxArchived(txId string) (bool, error) + func (b *BlockKvDB) TxExists(txId string) (bool, error) Other modules containing this package chainmaker.org/chainmaker/store/v2