validationhandler

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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements a distributed validation handler provider

func NewProvider

func NewProvider(providers *Providers) *Provider

NewProvider returns a new distributed validation handler provider

func (*Provider) Close

func (p *Provider) Close()

Close cleans up all of the resources in the provider

func (*Provider) SendValidationRequest

func (p *Provider) SendValidationRequest(channelID string, req *vcommon.ValidationRequest)

SendValidationRequest sends a validation request to remote peers

func (*Provider) ValidatePending

func (p *Provider) ValidatePending(channelID string, blockNum uint64)

ValidatePending validates any pending blocks

type Providers

type Providers struct {
	AppDataHandlerRegistry        appDataHandlerRegistry
	DistributedValidationProvider distributedValidatorProvider
	GossipProvider                gossipProvider
	IdentityProvider              identityProvider
	BlockPublisherProvider        blockPublisherProvider
	ContextProvider               contextProvider
}

Providers contains the dependencies for the validation handler

Jump to

Keyboard shortcuts

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