Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 Changes in this version + var MockBlk = []byte(...) type DebugStore + func (d *DebugStore) GetArchiveStatus() (*storePb.ArchiveStatus, error) + func (d *DebugStore) GetHotColdDataSeparationMaxHeight() (uint64, error) + func (d *DebugStore) GetLastHeight() (uint64, error) v3.0.0 Dec 23, 2022 Changes in this version + type DebugStore struct + func NewDebugStore(l protocol.Logger, config *conf.StorageConfig, db protocol.DBHandle) *DebugStore + func (d *DebugStore) ArchiveBlock(archiveHeight uint64) error + func (d *DebugStore) BeginDbTransaction(txName string) (protocol.SqlDBTransaction, error) + func (d *DebugStore) BlockExists(blockHash []byte) (bool, error) + func (d *DebugStore) Close() error + func (d *DebugStore) CommitDbTransaction(txName string) error + func (d *DebugStore) CreateDatabase(contractName string) error + func (d *DebugStore) DoHotColdDataSeparation(startHeight uint64, endHeight uint64) (string, error) + func (d *DebugStore) DropDatabase(contractName string) error + func (d *DebugStore) ExecDdlSql(contractName, sql, version string) error + func (d *DebugStore) GetAccountTxHistory(accountId []byte) (protocol.TxHistoryIterator, error) + func (d *DebugStore) GetArchivedPivot() uint64 + func (d *DebugStore) GetBlock(height uint64) (*commonPb.Block, error) + func (d *DebugStore) GetBlockByHash(blockHash []byte) (*commonPb.Block, error) + func (d *DebugStore) GetBlockByTx(txId string) (*commonPb.Block, error) + func (d *DebugStore) GetBlockHeaderByHeight(height uint64) (*commonPb.BlockHeader, error) + func (d *DebugStore) GetBlockWithRWSets(height uint64) (*storePb.BlockWithRWSet, error) + func (d *DebugStore) GetContractByName(name string) (*commonPb.Contract, error) + func (d *DebugStore) GetContractBytecode(name string) ([]byte, error) + func (d *DebugStore) GetContractDbName(contractName string) string + func (d *DebugStore) GetContractTxHistory(contractName string) (protocol.TxHistoryIterator, error) + func (d *DebugStore) GetDBHandle(dbName string) protocol.DBHandle + func (d *DebugStore) GetDbTransaction(txName string) (protocol.SqlDBTransaction, error) + func (d *DebugStore) GetHeightByHash(blockHash []byte) (uint64, error) + func (d *DebugStore) GetHistoryForKey(contractName string, key []byte) (protocol.KeyHistoryIterator, error) + func (d *DebugStore) GetHotColdDataSeparationJobByID(jobID string) (storePb.ArchiveJob, error) + func (d *DebugStore) GetLastBlock() (*commonPb.Block, error) + func (d *DebugStore) GetLastChainConfig() (*configPb.ChainConfig, error) + func (d *DebugStore) GetLastConfigBlock() (*commonPb.Block, error) + func (d *DebugStore) GetMemberExtraData(member *acPb.Member) (*acPb.MemberExtraData, error) + func (d *DebugStore) GetSnapshotStatus() uint64 + func (d *DebugStore) GetTx(txId string) (*commonPb.Transaction, error) + func (d *DebugStore) GetTxConfirmedTime(txId string) (int64, error) + func (d *DebugStore) GetTxHeight(txId string) (uint64, error) + func (d *DebugStore) GetTxInfoOnly(txId string) (*commonPb.TransactionInfo, error) + func (d *DebugStore) GetTxInfoWithRWSet(txId string) (*commonPb.TransactionInfoWithRWSet, error) + func (d *DebugStore) GetTxRWSet(txId string) (*commonPb.TxRWSet, error) + func (d *DebugStore) GetTxRWSetsByHeight(height uint64) ([]*commonPb.TxRWSet, error) + func (d *DebugStore) GetTxWithInfo(txId string) (*commonPb.TransactionInfo, error) + func (d *DebugStore) GetTxWithRWSet(txId string) (*commonPb.TransactionWithRWSet, error) + func (d *DebugStore) InitGenesis(genesisBlock *storePb.BlockWithRWSet) error + func (d *DebugStore) MakeSnapshot(snapshotHeight uint64) error + func (d *DebugStore) PutBlock(block *commonPb.Block, txRWSets []*commonPb.TxRWSet) error + func (d *DebugStore) QueryMulti(contractName, sql string, values ...interface{}) (protocol.SqlRows, error) + func (d *DebugStore) QuerySingle(contractName, sql string, values ...interface{}) (protocol.SqlRow, error) + func (d *DebugStore) ReadObject(contractName string, key []byte) ([]byte, error) + func (d *DebugStore) ReadObjects(contractName string, keys [][]byte) ([][]byte, error) + func (d *DebugStore) RestoreBlocks(serializedBlocks [][]byte) error + func (d *DebugStore) RollbackDbTransaction(txName string) error + func (d *DebugStore) SelectObject(contractName string, startKey []byte, limit []byte) (protocol.StateIterator, error) + func (d *DebugStore) TxExists(txId string) (bool, error) + func (d *DebugStore) TxExistsInFullDB(txId string) (bool, uint64, error) + func (d *DebugStore) TxExistsInIncrementDB(txId string, startHeight uint64) (bool, error) + func (d *DebugStore) TxExistsInIncrementDBState(txId string, startHeight uint64) (bool, bool, error) Other modules containing this package chainmaker.org/chainmaker/store/v2