fabric: github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/validator Index | Files | Directories

package validator

import "github.com/hyperledger/fabric/core/ledger/kvledger/txmgmt/validator"

Index

Package Files

validator.go

type ErrPvtdataHashMissmatch Uses

type ErrPvtdataHashMissmatch struct {
    Msg string
}

ErrPvtdataHashMissmatch is to be thrown if the hash of a collection present in the public read-write set does not match with the corresponding pvt data supplied with the block for validation

func (*ErrPvtdataHashMissmatch) Error Uses

func (e *ErrPvtdataHashMissmatch) Error() string

type Validator Uses

type Validator interface {
    ValidateAndPrepareBatch(blockAndPvtdata *ledger.BlockAndPvtData, doMVCCValidation bool) (
        *privacyenabledstate.UpdateBatch, []*txmgr.TxStatInfo, error,
    )
}

Validator validates the transactions present in a block and returns a batch that should be used to update the state

Directories

PathSynopsis
internal
statebasedval
valimpl

Package validator imports 3 packages (graph) and is imported by 2 packages. Updated 2018-12-17. Refresh now. Tools for package owners.