validator

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTxValidator

func NewTxValidator(
	channelID string,
	sem semaphore,
	cr channelResources,
	ler ledgerResources,
	lcr plugindispatcher.LifecycleResources,
	cor plugindispatcher.CollectionResources,
	pm plugin.Mapper,
	cpmg policies.ChannelPolicyManagerGetter,
	cp bccsp.BCCSP) txvalidator.Validator

NewTxValidator creates a new validator for the given channel

Types

type Provider

type Provider struct {
	*Providers
	// contains filtered or unexported fields
}

Provider maintains a set of V2 transaction validators, one per channel

func NewProvider

func NewProvider(providers *Providers) *Provider

NewProvider returns a new validator provider

func (*Provider) GetValidatorForChannel

func (p *Provider) GetValidatorForChannel(channelID string) vcommon.DistributedValidator

GetValidatorForChannel returns the validator for the given channel

type Providers

type Providers struct {
	Gossip gossipProvider
	Idp    identityDeserializerProvider
}

Providers contains the dependencies for the validator

Jump to

Keyboard shortcuts

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