Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitBatchPreparer ¶
type CommitBatchPreparer struct {
// contains filtered or unexported fields
}
CommitBatchPreparer performs validation and prepares the final batch that is to be committed to the statedb
func NewCommitBatchPreparer ¶
func NewCommitBatchPreparer( txmgr txmgr.TxMgr, db *privacyenabledstate.DB, customTxProcessors map[common.HeaderType]ledger.CustomTxProcessor, hasher ledger.Hasher, ) *CommitBatchPreparer
NewCommitBatchPreparer constructs a validator that internally manages statebased validator and in addition handles the tasks that are agnostic to a particular validation scheme such as parsing the block and handling the pvt data
func (*CommitBatchPreparer) ValidateAndPrepareBatch ¶
func (p *CommitBatchPreparer) ValidateAndPrepareBatch(blockAndPvtdata *ledger.BlockAndPvtData, doMVCCValidation bool) (*privacyenabledstate.UpdateBatch, []*txmgr.TxStatInfo, error)
ValidateAndPrepareBatch performs validation of transactions in the block and prepares the batch of final writes
Source Files ¶
Click to show internal directories.
Click to hide internal directories.