Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 Changes in this version + type MockResultDB struct + func NewMockResultDB(ctrl *gomock.Controller) *MockResultDB + func (m *MockResultDB) Close() + func (m *MockResultDB) CommitBlock(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error + func (m *MockResultDB) EXPECT() *MockResultDBMockRecorder + func (m *MockResultDB) GetLastSavepoint() (uint64, error) + func (m *MockResultDB) GetRWSetIndex(txId string) (*store.StoreInfo, error) + func (m *MockResultDB) GetTxRWSet(txid string) (*common.TxRWSet, error) + func (m *MockResultDB) InitGenesis(genesisBlock *serialization.BlockWithSerializedInfo) error + func (m *MockResultDB) RestoreBlocks(blockInfos []*serialization.BlockWithSerializedInfo) error + func (m *MockResultDB) ShrinkBlocks(txIdsMap map[uint64][]string, height uint64, bfdbPath string) error + type MockResultDBMockRecorder struct + func (mr *MockResultDBMockRecorder) Close() *gomock.Call + func (mr *MockResultDBMockRecorder) CommitBlock(blockInfo, isCache interface{}) *gomock.Call + func (mr *MockResultDBMockRecorder) GetLastSavepoint() *gomock.Call + func (mr *MockResultDBMockRecorder) GetRWSetIndex(txId interface{}) *gomock.Call + func (mr *MockResultDBMockRecorder) GetTxRWSet(txid interface{}) *gomock.Call + func (mr *MockResultDBMockRecorder) InitGenesis(genesisBlock interface{}) *gomock.Call + func (mr *MockResultDBMockRecorder) RestoreBlocks(blockInfos interface{}) *gomock.Call + func (mr *MockResultDBMockRecorder) ShrinkBlocks(txIdsMap, height, bfdbPath interface{}) *gomock.Call v3.0.0 Dec 23, 2022 Changes in this version + type ResultDB interface + Close func() + CommitBlock func(blockInfo *serialization.BlockWithSerializedInfo, isCache bool) error + GetLastSavepoint func() (uint64, error) + GetRWSetIndex func(txId string) (*storePb.StoreInfo, error) + GetTxRWSet func(txid string) (*commonPb.TxRWSet, error) + InitGenesis func(genesisBlock *serialization.BlockWithSerializedInfo) error + RestoreBlocks func(blockInfos []*serialization.BlockWithSerializedInfo) error + ShrinkBlocks func(txIdsMap map[uint64][]string) error Other modules containing this package chainmaker.org/chainmaker/store/v2