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