txvalidator

package
v1.1.0-preview Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Support

type Support interface {
	// Acquire implements semaphore-like acquire semantics
	Acquire(ctx context.Context, n int64) error

	// Release implements semaphore-like release semantics
	Release(n int64)

	// Ledger returns the ledger associated with this validator
	Ledger() ledger.PeerLedger

	// MSPManager returns the MSP manager for this chain
	MSPManager() msp.MSPManager

	// Apply attempts to apply a configtx to become the new config
	Apply(configtx *common.ConfigEnvelope) error

	// GetMSPIDs returns the IDs for the application MSPs
	// that have been defined in the channel
	GetMSPIDs(cid string) []string

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

Support provides all of the needed to evaluate the VSCC

type VSCCEndorsementPolicyError added in v1.0.1

type VSCCEndorsementPolicyError struct {
	// contains filtered or unexported fields
}

VSCCEndorsementPolicyError error to mark transaction failed endrosement policy check

func (VSCCEndorsementPolicyError) Error added in v1.0.1

Error returns reasons which lead to the failure

type VSCCExecutionFailureError added in v1.0.1

type VSCCExecutionFailureError struct {
	// contains filtered or unexported fields
}

VSCCExecutionFailureError error to indicate failure during attempt of executing VSCC endorsement policy check

func (VSCCExecutionFailureError) Error added in v1.0.1

Error returns reasons which lead to the failure

type VSCCInfoLookupFailureError added in v1.0.1

type VSCCInfoLookupFailureError struct {
	// contains filtered or unexported fields
}

VSCCInfoLookupFailureError error to indicate inability to obtain VSCC information from LCCC

func (VSCCInfoLookupFailureError) Error added in v1.0.1

Error returns reasons which lead to the failure

type Validator

type Validator interface {
	Validate(block *common.Block) error
}

Validator interface which defines API to validate block transactions and return the bit array mask indicating invalid transactions which didn't pass validation.

func NewTxValidator

func NewTxValidator(support Support) Validator

NewTxValidator creates new transactions validator

Jump to

Keyboard shortcuts

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