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