Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatebasedValidator ¶
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
Click to show internal directories.
Click to hide internal directories.