Help us shape the future of Go! Take the 2026 Go Developer Survey

valimpl

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 18 Imported by: 251

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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