pre_consensus_justifications

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecidedInstance

func DecidedInstance() tests.SpecTest

DecidedInstance tests a valid pre-consensus justification for a decided instance pre-consensus will return false from shouldProcessingJustificationsForHeight as it's decided

func DuplicateJustificationSigner

func DuplicateJustificationSigner() tests.SpecTest

DuplicateJustificationSigner tests a duplicate pre-consensus justification signer (error)

func DuplicateRoots

func DuplicateRoots() tests.SpecTest

DuplicateRoots tests an invalid pre-consensus justification due to duplicate roots signed by same signer

func ExistingValidPreConsensus

func ExistingValidPreConsensus() tests.SpecTest

ExistingValidPreConsensus tests pre-consensus justification after receiving a valid quorum of pre-consensus

func FutureHeight

func FutureHeight() tests.SpecTest

FutureHeight tests justification with height > current height + 1 (will treat it as a future message, pre-consensus won't be processed)

func HappyFlow

func HappyFlow() tests.SpecTest

HappyFlow tests a full flow of an already started duty with pre-consensus justifications

func InconsistentRootCount

func InconsistentRootCount() tests.SpecTest

InconsistentRootCount tests an invalid pre-consensus justification due to inconsistent root count

func InconsistentRoots

func InconsistentRoots() tests.SpecTest

InconsistentRoots tests an invalid pre-consensus justification due to inconsistent roots

func InvalidConsensusData

func InvalidConsensusData() tests.SpecTest

InvalidConsensusData tests consensusData.Validate() != nil

func InvalidData

func InvalidData() tests.SpecTest

InvalidData tests error decoding consensusData

func InvalidJustification

func InvalidJustification() tests.SpecTest

InvalidJustification tests an invalid pre-consensus justification

func InvalidJustificationSignature

func InvalidJustificationSignature() tests.SpecTest

InvalidJustificationSignature tests an invalid pre-consensus justification message signature

func InvalidMsgType

func InvalidMsgType() tests.SpecTest

InvalidMsgType tests justification for non proposal/round change msg

func InvalidSlot

func InvalidSlot() tests.SpecTest

InvalidSlot tests an invalid pre-consensus justification message slot

func MissingQuorum

func MissingQuorum() tests.SpecTest

MissingQuorum tests missing quorum pre-consensus justification for relevant duties

func PastHeight

func PastHeight() tests.SpecTest

PastHeight tests justification with height <= current height (not valid)

func PastSlot

func PastSlot() tests.SpecTest

PastSlot tests justification with highestDecidedDutySlot >= data.Duty.Slot (not valid)

func UnknownSigner

func UnknownSigner() tests.SpecTest

UnknownSigner tests an invalid pre-consensus justification message signature (unknown signer)

func Valid

func Valid() tests.SpecTest

Valid tests a valid pre-consensus justification

func Valid10Operators

func Valid10Operators() tests.SpecTest

Valid10Operators tests a 10 operator valid pre-consensus justification

func Valid13Operators

func Valid13Operators() tests.SpecTest

Valid13Operators tests a 13 operator valid pre-consensus justification

func Valid7Operators

func Valid7Operators() tests.SpecTest

Valid7Operators tests a 7 operator valid pre-consensus justification

func ValidFirstHeight

func ValidFirstHeight() tests.SpecTest

ValidFirstHeight tests a special case for first height which didn't start

func ValidNoRunningDuty

func ValidNoRunningDuty() tests.SpecTest

ValidNoRunningDuty tests a valid pre-consensus justification for a runner that has no running duty

func ValidRoundChangeMsg

func ValidRoundChangeMsg() tests.SpecTest

ValidRoundChangeMsg tests a valid pre-consensus justification for a round change message

func WrongBeaconRole

func WrongBeaconRole() tests.SpecTest

WrongBeaconRole tests wrong ConsensusData.Duty.Type != runner.BeaconRoleType (changed the consensus data object between runner types, e.g. sync committee receives contribution proof)

Types

This section is empty.

Jump to

Keyboard shortcuts

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