valimpl

package
v2.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 17 Imported by: 237

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStatebasedValidator

func NewStatebasedValidator(
	txmgr txmgr.TxMgr,
	db privacyenabledstate.DB,
	customTxProcessors map[common.HeaderType]ledger.CustomTxProcessor,
	hasher ledger.Hasher,
) validator.Validator

NewStatebasedValidator 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

Types

type DefaultImpl

type DefaultImpl struct {
	// contains filtered or unexported fields
}

DefaultImpl implements the interface validator.Validator This performs the common tasks that are independent of a particular scheme of validation and for actual validation of the public rwset, it encloses an internal validator (that implements interface internal.InternalValidator) such as statebased validator

func (*DefaultImpl) ValidateAndPrepareBatch

func (impl *DefaultImpl) ValidateAndPrepareBatch(blockAndPvtdata *ledger.BlockAndPvtData,
	doMVCCValidation bool) (*privacyenabledstate.UpdateBatch, []*txmgr.TxStatInfo, error)

ValidateAndPrepareBatch implements the function in interface validator.Validator

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