v2

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastValidation

type BroadcastValidation int

BroadcastValidation defines the validation to carry out prior to broadcasting proposals.

const (
	// BroadcastValidationGossip means carry out lightweight gossip checks.
	BroadcastValidationGossip BroadcastValidation = iota
	// BroadcastValidationConsensus means carry out full consensus checks.
	BroadcastValidationConsensus
	// BroadcastValidationConsensusAndEquivocation means carry out consensus and equivocation checks.
	BroadcastValidationConsensusAndEquivocation
)

func (*BroadcastValidation) MarshalJSON

func (b *BroadcastValidation) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (BroadcastValidation) String

func (b BroadcastValidation) String() string

func (*BroadcastValidation) UnmarshalJSON

func (b *BroadcastValidation) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

Jump to

Keyboard shortcuts

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