txmgr

package
v2.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 4 Imported by: 1,174

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrPvtdataNotAvailable added in v1.1.0

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 snapshot exposed to the simulation

func (*ErrPvtdataNotAvailable) Error added in v1.1.0

func (e *ErrPvtdataNotAvailable) Error() string

type ErrUnsupportedTransaction added in v1.1.0

type ErrUnsupportedTransaction struct {
	Msg string
}

ErrUnsupportedTransaction is expected to be thrown if a unsupported query is performed in an update transaction

func (*ErrUnsupportedTransaction) Error added in v1.1.0

func (e *ErrUnsupportedTransaction) Error() string

type TxMgr

type TxMgr interface {
	NewQueryExecutor(txid string) (ledger.QueryExecutor, error)
	NewTxSimulator(txid string) (ledger.TxSimulator, error)
	ValidateAndPrepare(blockAndPvtdata *ledger.BlockAndPvtData, doMVCCValidation bool) ([]*TxStatInfo, []byte, error)
	RemoveStaleAndCommitPvtDataOfOldBlocks(blocksPvtData map[uint64][]*ledger.TxPvtData) error
	GetLastSavepoint() (*version.Height, error)
	ShouldRecover(lastAvailableBlock uint64) (bool, uint64, error)
	CommitLostBlock(blockAndPvtdata *ledger.BlockAndPvtData) error
	Commit() error
	Rollback()
	Shutdown()
	Name() string
}

TxMgr - an interface that a transaction manager should implement

type TxStatInfo added in v1.4.0

type TxStatInfo struct {
	ValidationCode peer.TxValidationCode
	TxType         common.HeaderType
	ChaincodeID    *peer.ChaincodeID
	NumCollections int
}

TxStatInfo encapsulates information about a transaction

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL