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) ValidateBVs ¶
func (v *Checker) ValidateBVs(bvs inter.LlrSignedBlockVotes) error
func (*Checker) ValidateEV ¶
func (v *Checker) ValidateEV(ev inter.LlrSignedEpochVote) error
Click to show internal directories.
Click to hide internal directories.