txvalidator

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 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 added in v1.5.6

type ApplicationCapabilities interface {
	channelconfig.ApplicationCapabilities
}

type CapabilityProvider added in v1.5.6

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 added in v1.5.6

type QueryExecutor interface {
	ledger.QueryExecutor
}

type ValidationRouter added in v1.5.6

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 added in v1.5.6

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