Documentation ¶
Index ¶
- func CurrentRoundPrevNotPrepared() *tests.MsgProcessingSpecTest
- func CurrentRoundPrevPrepared() *tests.MsgProcessingSpecTest
- func DifferentJustifications() *tests.MsgProcessingSpecTest
- func DuplicateMsg() *tests.MsgProcessingSpecTest
- func DuplicateMsgDifferentValue() *tests.MsgProcessingSpecTest
- func DuplicateRCMsg() *tests.MsgProcessingSpecTest
- func FirstRoundJustification() *tests.MsgProcessingSpecTest
- func FutureRound() *tests.MsgProcessingSpecTest
- func FutureRoundPrevNotPrepared() *tests.MsgProcessingSpecTest
- func ImparsableProposalData() *tests.MsgProcessingSpecTest
- func InvalidPrepareJustificationRound() *tests.MsgProcessingSpecTest
- func InvalidPrepareJustificationValue() *tests.MsgProcessingSpecTest
- func InvalidProposalData() *tests.MsgProcessingSpecTest
- func InvalidRoundChangeJustification() *tests.MsgProcessingSpecTest
- func InvalidRoundChangeJustificationPrepared() *tests.MsgProcessingSpecTest
- func InvalidValueCheck() *tests.MsgProcessingSpecTest
- func JustificationsNotHeighest() *tests.MsgProcessingSpecTest
- func JustificationsValueNotJustified() *tests.MsgProcessingSpecTest
- func MultiSigner() *tests.MsgProcessingSpecTest
- func NoRCJustification() *tests.MsgProcessingSpecTest
- func NotPreparedPreviouslyJustification() *tests.MsgProcessingSpecTest
- func PastRoundProposalPrevNotPrepared() *tests.MsgProcessingSpecTest
- func PastRoundProposalPrevPrepared() *tests.MsgProcessingSpecTest
- func PostDecided() *tests.MsgProcessingSpecTest
- func PostPrepared() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyDuplicatePrepareMsg() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyDuplicatePrepareQuorum() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyDuplicateRCMsg() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyDuplicateRCQuorum() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyJustification() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyNoPrepareJustificationQuorum() *tests.MsgProcessingSpecTest
- func PreparedPreviouslyNoRCJustificationQuorum() *tests.MsgProcessingSpecTest
- func SecondProposalForRound() *tests.MsgProcessingSpecTest
- func UnknownSigner() *tests.MsgProcessingSpecTest
- func WrongHeight() *tests.MsgProcessingSpecTest
- func WrongProposer() *tests.MsgProcessingSpecTest
- func WrongSignature() *tests.MsgProcessingSpecTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentRoundPrevNotPrepared ¶
func CurrentRoundPrevNotPrepared() *tests.MsgProcessingSpecTest
CurrentRoundPrevNotPrepared tests a > first round proposal prev not prepared
func CurrentRoundPrevPrepared ¶
func CurrentRoundPrevPrepared() *tests.MsgProcessingSpecTest
CurrentRoundPrevPrepared tests a > first round proposal prev prepared
func DifferentJustifications ¶
func DifferentJustifications() *tests.MsgProcessingSpecTest
DifferentJustifications tests a proposal for > 1 round, prepared previously with rc justification prepares at different heights (tests the highest prepared calculation)
func DuplicateMsg ¶
func DuplicateMsg() *tests.MsgProcessingSpecTest
DuplicateMsg tests a duplicate proposal msg processing
func DuplicateMsgDifferentValue ¶
func DuplicateMsgDifferentValue() *tests.MsgProcessingSpecTest
DuplicateMsgDifferentValue tests a duplicate proposal msg processing (second one with different value)
func DuplicateRCMsg ¶
func DuplicateRCMsg() *tests.MsgProcessingSpecTest
DuplicateRCMsg tests a proposal for > 1 round, not prepared previously with quorum of round change but 2 are duplicates (shouldn't find quorum)
func FirstRoundJustification ¶
func FirstRoundJustification() *tests.MsgProcessingSpecTest
FirstRoundJustification tests proposal justification for first round (proposer is correct check)
func FutureRound ¶
func FutureRound() *tests.MsgProcessingSpecTest
FutureRound tests a proposal for state.ProposalAcceptedForCurrentRound != nil && signedProposal.Message.Round > state.Round
func FutureRoundPrevNotPrepared ¶
func FutureRoundPrevNotPrepared() *tests.MsgProcessingSpecTest
FutureRoundPrevNotPrepared tests a proposal for future round, currently not prepared
func ImparsableProposalData ¶
func ImparsableProposalData() *tests.MsgProcessingSpecTest
ImparsableProposalData tests a proposal msg received with imparsable data
func InvalidPrepareJustificationRound ¶
func InvalidPrepareJustificationRound() *tests.MsgProcessingSpecTest
InvalidPrepareJustificationRound tests a proposal for > 1 round, prepared previously but one of the prepare justifications has round != highest prepared round
func InvalidPrepareJustificationValue ¶
func InvalidPrepareJustificationValue() *tests.MsgProcessingSpecTest
InvalidPrepareJustificationValue tests a proposal for > 1 round, prepared previously but one of the prepare justifications has value != highest prepared
func InvalidProposalData ¶
func InvalidProposalData() *tests.MsgProcessingSpecTest
InvalidProposalData tests proposal data for which proposalData.validate() != nil
func InvalidRoundChangeJustification ¶
func InvalidRoundChangeJustification() *tests.MsgProcessingSpecTest
InvalidRoundChangeJustification tests a proposal for > 1 round, not prepared previously but one of the round change justifications has validRoundChange != nil
func InvalidRoundChangeJustificationPrepared ¶
func InvalidRoundChangeJustificationPrepared() *tests.MsgProcessingSpecTest
InvalidRoundChangeJustificationPrepared tests a proposal for > 1 round, prepared previously but one of the round change justifications has validRoundChange != nil
func InvalidValueCheck ¶
func InvalidValueCheck() *tests.MsgProcessingSpecTest
InvalidValueCheck tests a proposal that doesn't pass value check
func JustificationsNotHeighest ¶
func JustificationsNotHeighest() *tests.MsgProcessingSpecTest
JustificationsNotHeighest tests a proposal for > 1 round, prepared previously with rc justification prepares at different heights but the prepare justification is not the highest
func JustificationsValueNotJustified ¶
func JustificationsValueNotJustified() *tests.MsgProcessingSpecTest
JustificationsValueNotJustified tests a proposal for > 1 round, prepared previously with rc justification prepares at different heights but the prepare value is not the highest
func MultiSigner ¶
func MultiSigner() *tests.MsgProcessingSpecTest
MultiSigner tests a proposal msg with > 1 signers
func NoRCJustification ¶
func NoRCJustification() *tests.MsgProcessingSpecTest
NoRCJustification tests a proposal for > 1 round, not prepared previously but without quorum of round change msgs justification
func NotPreparedPreviouslyJustification ¶
func NotPreparedPreviouslyJustification() *tests.MsgProcessingSpecTest
NotPreparedPreviouslyJustification tests a proposal for > 1 round, not prepared previously
func PastRoundProposalPrevNotPrepared ¶
func PastRoundProposalPrevNotPrepared() *tests.MsgProcessingSpecTest
PastRoundProposalPrevNotPrepared tests a valid proposal for past round (not prev prepared)
func PastRoundProposalPrevPrepared ¶
func PastRoundProposalPrevPrepared() *tests.MsgProcessingSpecTest
PastRoundProposalPrevPrepared tests a valid proposal for past round (prev prepared)
func PostDecided ¶
func PostDecided() *tests.MsgProcessingSpecTest
PostDecided tests processing proposal msg after instance decided
func PostPrepared ¶
func PostPrepared() *tests.MsgProcessingSpecTest
PostPrepared tests processing proposal msg after instance prepared
func PreparedPreviouslyDuplicatePrepareMsg ¶
func PreparedPreviouslyDuplicatePrepareMsg() *tests.MsgProcessingSpecTest
PreparedPreviouslyDuplicatePrepareMsg tests a proposal for > 1 round, prepared previously with quorum of prepared msgs (2 of which are duplicates, shouldn't find quorum)
func PreparedPreviouslyDuplicatePrepareQuorum ¶
func PreparedPreviouslyDuplicatePrepareQuorum() *tests.MsgProcessingSpecTest
PreparedPreviouslyDuplicatePrepareQuorum tests a proposal for > 1 round, prepared previously with quorum of prepared msgs (2 of which are duplicates)
func PreparedPreviouslyDuplicateRCMsg ¶
func PreparedPreviouslyDuplicateRCMsg() *tests.MsgProcessingSpecTest
PreparedPreviouslyDuplicateRCMsg tests a proposal for > 1 round, prepared previously with quorum of round change but 2 are duplicates (shouldn't find quorum)
func PreparedPreviouslyDuplicateRCQuorum ¶
func PreparedPreviouslyDuplicateRCQuorum() *tests.MsgProcessingSpecTest
PreparedPreviouslyDuplicateRCQuorum tests a proposal for > 1 round, prepared previously with quorum of round change but 2 are duplicates
func PreparedPreviouslyJustification ¶
func PreparedPreviouslyJustification() *tests.MsgProcessingSpecTest
PreparedPreviouslyJustification tests a proposal for > 1 round, prepared previously with quorum of round change msgs justification
func PreparedPreviouslyNoPrepareJustificationQuorum ¶
func PreparedPreviouslyNoPrepareJustificationQuorum() *tests.MsgProcessingSpecTest
PreparedPreviouslyNoPrepareJustificationQuorum tests a proposal for > 1 round, prepared previously but without quorum of prepared msgs justification
func PreparedPreviouslyNoRCJustificationQuorum ¶
func PreparedPreviouslyNoRCJustificationQuorum() *tests.MsgProcessingSpecTest
PreparedPreviouslyNoRCJustificationQuorum tests a proposal for > 1 round, prepared previously but without quorum of round change msgs justification
func SecondProposalForRound ¶
func SecondProposalForRound() *tests.MsgProcessingSpecTest
SecondProposalForRound tests a second proposal (by same signer) for current round. state.ProposalAcceptedForCurrentRound != nil && signedProposal.Message.Round == state.Round
func UnknownSigner ¶
func UnknownSigner() *tests.MsgProcessingSpecTest
UnknownSigner tests a single proposal received with an unknown signer
func WrongHeight ¶
func WrongHeight() *tests.MsgProcessingSpecTest
WrongHeight tests a proposal msg received with the wrong height
func WrongProposer ¶
func WrongProposer() *tests.MsgProcessingSpecTest
WrongProposer tests a proposal by the wrong proposer
func WrongSignature ¶
func WrongSignature() *tests.MsgProcessingSpecTest
WrongSignature tests a single proposal received with a wrong signature
Types ¶
This section is empty.
Source Files ¶
- current_round_prev_not_prepared.go
- current_round_prev_prepared.go
- different_justifications.go
- duplicate_msg.go
- duplicate_msg_different_value.go
- duplicate_rc_msg.go
- first_round_justification.go
- future_round.go
- future_round_prev_not_prepare.go
- imparsable_proposal_data.go
- invalid_prepare_justification_round.go
- invalid_prepare_justification_value.go
- invalid_proposal_data.go
- invalid_rc_justification.go
- invalid_rc_justification_prepared.go
- invalid_value_check.go
- justification_not_heighest.go
- justification_value_not_justified.go
- multi_signer.go
- no_rc_justification.go
- not_prepared_previously_justification.go
- past_round_prev_not_prepared.go
- past_round_prev_prepared.go
- post_decided.go
- post_prepared.go
- prepared_previously_duplicate_prepare_msg.go
- prepared_previously_duplicate_prepare_quorum.go
- prepared_previously_duplicate_rc_msg.go
- prepared_previously_duplicate_rc_quorum.go
- prepared_previously_justification.go
- prepared_previously_no_prepare_justification_quorum.go
- prepared_previously_no_rc_justification_quorum.go
- second_proposal_for_round.go
- unknown_signer.go
- wrong_height.go
- wrong_proposer.go
- wrong_sig.go