proposal

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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