validation

package
v0.0.0-...-e295948 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

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

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