valimpl

package
v0.0.0-...-c74ab33 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseFabricMachine

func CloseFabricMachine()

func InitFabricMachine

func InitFabricMachine() error

func NewStatebasedValidator

func NewStatebasedValidator(txmgr txmgr.TxMgr, db privacyenabledstate.DB) 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

Jump to

Keyboard shortcuts

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