fabric: github.com/hyperledger/fabric/core/committer/txvalidator Index | Files | Directories

package txvalidator

import "github.com/hyperledger/fabric/core/committer/txvalidator"

Index

Package Files

router.go test_utils.go

type ApplicationCapabilities Uses

type ApplicationCapabilities interface {
    channelconfig.ApplicationCapabilities
}

type CapabilityProvider Uses

type CapabilityProvider interface {
    // Capabilities defines the capabilities for the application portion of this channel
    Capabilities() channelconfig.ApplicationCapabilities
}

CapabilityProvider contains functions to retrieve capability information for a channel

type QueryExecutor Uses

type QueryExecutor interface {
    ledger.QueryExecutor
}

type ValidationRouter Uses

type ValidationRouter struct {
    CapabilityProvider
    V20Validator Validator
    V14Validator Validator
}

ValidationRouter dynamically invokes the appropriate validator depending on the capabilities that are currently enabled in the channel.

func (*ValidationRouter) Validate Uses

func (v *ValidationRouter) Validate(block *common.Block) error

Validate returns an error if validation could not be performed successfully In case of successful validation, the block is modified to reflect the validity of the transactions it contains

type Validator Uses

type Validator interface {
    // Validate returns an error if validation could not be performed successfully
    // In case of successful validation, the block is modified to reflect the validity
    // of the transactions it contains
    Validate(block *common.Block) error
}

Validator defines API to validate transactions in a block

Directories

PathSynopsis
mocks
plugin
v14
v14/mocks
v20
v20/mocks
v20/plugindispatcher
v20/plugindispatcher/mocks
v20/valinforetriever
v20/valinforetriever/mocks

Package txvalidator imports 3 packages (graph) and is imported by 46 packages. Updated 2019-11-24. Refresh now. Tools for package owners.