Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrStoreEmpty = errors.New("Transient store is empty")
)
Functions ¶
This section is empty.
Types ¶
type EndorserPvtSimulationResults ¶
type EndorserPvtSimulationResults struct {
ReceivedAtBlockHeight uint64
PvtSimulationResultsWithConfig *transientstore.TxPvtReadWriteSetWithConfigInfo
}
type RWSetScanner ¶
type RWSetScanner interface {
Next() (*EndorserPvtSimulationResults, error)
Close()
}
type RwsetScanner ¶
type RwsetScanner struct {
// contains filtered or unexported fields
}
func (*RwsetScanner) Close ¶
func (scanner *RwsetScanner) Close()
func (*RwsetScanner) Next ¶
func (scanner *RwsetScanner) Next() (*EndorserPvtSimulationResults, error)
type Store ¶
type Store interface {
Persist(txid string, blockHeight uint64, privateSimulationResultsWithConfig *transientstore.TxPvtReadWriteSetWithConfigInfo) error
GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (RWSetScanner, error)
PurgeByTxids(txids []string) error
PurgeByHeight(maxBlockNumToRetain uint64) error
GetMinTransientBlkHt() (uint64, error)
Shutdown()
}
type StoreEnv ¶
type StoreEnv struct {
TestStoreProvider StoreProvider
TestStore Store
// contains filtered or unexported fields
}
func NewTestStoreEnv ¶
type StoreProvider ¶
func NewStoreProvider ¶
func NewStoreProvider(path string) (StoreProvider, error)
Click to show internal directories.
Click to hide internal directories.