Documentation ¶
Index ¶
- func DecidedInstance() tests.SpecTest
- func DuplicateJustificationSigner() tests.SpecTest
- func DuplicateRoots() tests.SpecTest
- func ExistingValidPreConsensus() tests.SpecTest
- func FutureHeight() tests.SpecTest
- func HappyFlow() tests.SpecTest
- func InconsistentRootCount() tests.SpecTest
- func InconsistentRoots() tests.SpecTest
- func InvalidConsensusData() tests.SpecTest
- func InvalidData() tests.SpecTest
- func InvalidJustification() tests.SpecTest
- func InvalidJustificationSignature() tests.SpecTest
- func InvalidMsgType() tests.SpecTest
- func InvalidSlot() tests.SpecTest
- func MissingQuorum() tests.SpecTest
- func PastHeight() tests.SpecTest
- func PastSlot() tests.SpecTest
- func UnknownSigner() tests.SpecTest
- func Valid() tests.SpecTest
- func Valid10Operators() tests.SpecTest
- func Valid13Operators() tests.SpecTest
- func Valid7Operators() tests.SpecTest
- func ValidFirstHeight() tests.SpecTest
- func ValidNoRunningDuty() tests.SpecTest
- func ValidRoundChangeMsg() tests.SpecTest
- func WrongBeaconRole() tests.SpecTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecidedInstance ¶
DecidedInstance tests a valid pre-consensus justification for a decided instance pre-consensus will return false from shouldProcessingJustificationsForHeight as it's decided
func DuplicateJustificationSigner ¶
DuplicateJustificationSigner tests a duplicate pre-consensus justification signer (error)
func DuplicateRoots ¶
DuplicateRoots tests an invalid pre-consensus justification due to duplicate roots signed by same signer
func ExistingValidPreConsensus ¶
ExistingValidPreConsensus tests pre-consensus justification after receiving a valid quorum of pre-consensus
func FutureHeight ¶
FutureHeight tests justification with height > current height + 1 (will treat it as a future message, pre-consensus won't be processed)
func HappyFlow ¶
HappyFlow tests a full flow of an already started duty with pre-consensus justifications
func InconsistentRootCount ¶
InconsistentRootCount tests an invalid pre-consensus justification due to inconsistent root count
func InconsistentRoots ¶
InconsistentRoots tests an invalid pre-consensus justification due to inconsistent roots
func InvalidConsensusData ¶
InvalidConsensusData tests consensusData.Validate() != nil
func InvalidJustification ¶
InvalidJustification tests an invalid pre-consensus justification
func InvalidJustificationSignature ¶
InvalidJustificationSignature tests an invalid pre-consensus justification message signature
func InvalidMsgType ¶
InvalidMsgType tests justification for non proposal/round change msg
func InvalidSlot ¶
InvalidSlot tests an invalid pre-consensus justification message slot
func MissingQuorum ¶
MissingQuorum tests missing quorum pre-consensus justification for relevant duties
func PastHeight ¶
PastHeight tests justification with height <= current height (not valid)
func PastSlot ¶
PastSlot tests justification with highestDecidedDutySlot >= data.Duty.Slot (not valid)
func UnknownSigner ¶
UnknownSigner tests an invalid pre-consensus justification message signature (unknown signer)
func Valid10Operators ¶
Valid10Operators tests a 10 operator valid pre-consensus justification
func Valid13Operators ¶
Valid13Operators tests a 13 operator valid pre-consensus justification
func Valid7Operators ¶
Valid7Operators tests a 7 operator valid pre-consensus justification
func ValidFirstHeight ¶
ValidFirstHeight tests a special case for first height which didn't start
func ValidNoRunningDuty ¶
ValidNoRunningDuty tests a valid pre-consensus justification for a runner that has no running duty
func ValidRoundChangeMsg ¶
ValidRoundChangeMsg tests a valid pre-consensus justification for a round change message
func WrongBeaconRole ¶
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.
Source Files ¶
- decided_instance.go
- duplicate_justification_signer.go
- duplicate_roots.go
- existing_valid_pre_consensus.go
- future_height.go
- happy_flow.go
- inconsisten_root_count.go
- inconsisten_roots.go
- invalid_consensus_data.go
- invalid_data.go
- invalid_justification.go
- invalid_justification_sig.go
- invalid_msg_type.go
- invalid_slot.go
- missing_quorum.go
- past_height.go
- past_slot.go
- unknow_siger.go
- valid.go
- valid_10_operators.go
- valid_13_operators.go
- valid_7_operators.go
- valid_first_height.go
- valid_no_duty_runnnig.go
- valid_round_change_msg.go
- wrong_beacon_role.go