common

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: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DistributedValidator

type DistributedValidator interface {
	ValidatePartial(ctx context.Context, block *cb.Block) (txflags.ValidationFlags, []string, error)
	SubmitValidationResults(results *validationresults.Results)
	GetValidatingPeers(block *cb.Block) (discovery.PeerGroup, error)
}

DistributedValidator manages distributed validations

type ValidationRequest

type ValidationRequest struct {
	// Block is the block to validate
	Block *cb.Block

	// BlockBytes is an optional, marshalled protobuf of the block that
	// (if present) will be used in the Gossip request. If nil then the block
	// will be marshalled before being sent.
	BlockBytes []byte
}

ValidationRequest contains a request from a remote peer to validate a block.

Jump to

Keyboard shortcuts

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