txvalidator

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCapabilities

type ApplicationCapabilities interface {
	channelconfig.ApplicationCapabilities
}

type CapabilityProvider

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

type QueryExecutor interface {
	ledger.QueryExecutor
}

type ValidationRouter

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

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

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

Jump to

Keyboard shortcuts

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