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
Click to show internal directories.
Click to hide internal directories.