basiccheck

package
v1.1.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxBlockVotesPerEvent = 64
	MaxLiableEpochs       = 32768
)

Variables

View Source
var (
	ErrWrongNetForkID = errors.New("wrong network fork ID")
	ErrZeroTime       = errors.New("event has zero timestamp")
	ErrNegativeValue  = errors.New("negative value")
	ErrIntrinsicGas   = errors.New("intrinsic gas too low")
	// ErrTipAboveFeeCap is a sanity error to ensure no one is able to specify a
	// transaction with a tip higher than the total fee cap.
	ErrTipAboveFeeCap = errors.New("max priority fee per gas higher than max fee per gas")
	ErrWrongMP        = errors.New("inconsistent misbehaviour proof")
	ErrNoCrimeInMP    = errors.New("action in misbehaviour proof isn't a criminal offence")
	ErrWrongCreatorMP = errors.New("wrong creator in misbehaviour proof")
	ErrMPTooLate      = errors.New("too old misbehaviour proof")
	ErrMalformedMP    = errors.New("malformed MP union struct")
	FutureBVsEpoch    = errors.New("future block votes epoch")
	FutureEVEpoch     = errors.New("future epoch vote")
	MalformedBVs      = errors.New("malformed BVs")
	MalformedEV       = errors.New("malformed EV")
	TooManyBVs        = errors.New("too many BVs")
	EmptyEV           = errors.New("empty EV")
	EmptyBVs          = errors.New("empty BVs")
)

Functions

This section is empty.

Types

type Checker

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

func New

func New() *Checker

New validator which performs checks which don't require anything except event

func (*Checker) Validate

func (v *Checker) Validate(e inter.EventPayloadI) error

Validate event

func (*Checker) ValidateBVs

func (v *Checker) ValidateBVs(bvs inter.LlrSignedBlockVotes) error

func (*Checker) ValidateEV

func (v *Checker) ValidateEV(ev inter.LlrSignedEpochVote) error

Jump to

Keyboard shortcuts

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