Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrPvtdataNotAvailable ¶
type ErrPvtdataNotAvailable struct {
Msg string
}
ErrPvtdataNotAvailable is to be thrown when an application seeks a private data item during simulation and the simulator is not capable of returning the version of the private data item consistent with the snapshopt exposed to the simulation
func (*ErrPvtdataNotAvailable) Error ¶
func (e *ErrPvtdataNotAvailable) Error() string
type ErrUnsupportedTransaction ¶
type ErrUnsupportedTransaction struct {
Msg string
}
ErrUnsupportedTransaction is expected to be thrown if a unsupported query is performed in an update transaction
func (*ErrUnsupportedTransaction) Error ¶
func (e *ErrUnsupportedTransaction) Error() string
type TxMgr ¶ added in v1.0.0
type TxMgr interface { NewQueryExecutor(txid string) (ledger.QueryExecutor, error) NewTxSimulator(txid string) (ledger.TxSimulator, error) ValidateAndPrepare(blockAndPvtdata *ledger.BlockAndPvtData, doMVCCValidation bool) error GetLastSavepoint() (*version.Height, error) ShouldRecover(lastAvailableBlock uint64) (bool, uint64, error) CommitLostBlock(blockAndPvtdata *ledger.BlockAndPvtData) error Commit() error Rollback() Shutdown() }
TxMgr - an interface that a transaction manager should implement
Click to show internal directories.
Click to hide internal directories.