roundchange

package
v0.3.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterProposal

func AfterProposal() *tests.MsgProcessingSpecTest

AfterProposal tests a round change msg after prev quorum + received proposal

func DuplicateMsg

func DuplicateMsg() *tests.MsgProcessingSpecTest

DuplicateMsg tests a duplicate rc msg (first one inserted, second not)

func DuplicateMsgQuorum

func DuplicateMsgQuorum() *tests.MsgProcessingSpecTest

DuplicateMsgQuorum tests a duplicate rc msg for signer 1, after which enough msgs for quorum

func DuplicateMsgQuorumPreparedRCFirst

func DuplicateMsgQuorumPreparedRCFirst() *tests.MsgProcessingSpecTest

DuplicateMsgQuorumPreparedRCFirst tests a duplicate rc msg (the prev prepared one first)

func F1DifferentFutureRounds

func F1DifferentFutureRounds() *tests.MsgProcessingSpecTest

F1DifferentFutureRounds tests f+1 speedup with one rc prev prepared

func F1DifferentFutureRoundsNotPrepared

func F1DifferentFutureRoundsNotPrepared() *tests.MsgProcessingSpecTest

F1DifferentFutureRoundsNotPrepared tests f+1 speedup (not prev prepared)

func F1DuplicateSigner

func F1DuplicateSigner() *tests.MsgProcessingSpecTest

F1DuplicateSigner tests not accepting f+1 speed for duplicate signer

func F1DuplicateSignerNotPrepared

func F1DuplicateSignerNotPrepared() *tests.MsgProcessingSpecTest

F1DuplicateSignerNotPrepared tests not accepting f+1 speed for duplicate signer (not prev prepared)

func F1Speedup

func F1Speedup() *tests.MsgProcessingSpecTest

F1Speedup tests catching up to higher rounds via f+1 speedup, other peers are all at the same round

func F1SpeedupPrevPrepared

func F1SpeedupPrevPrepared() *tests.MsgProcessingSpecTest

F1SpeedupPrevPrepared tests catching up to higher rounds via f+1 speedup, other peers are all at the same round (one prev prepared)

func HappyFlow

func HappyFlow() *tests.MsgProcessingSpecTest

HappyFlow tests a simple full happy flow until decided

func ImparsableRoundChangeData

func ImparsableRoundChangeData() *tests.MsgProcessingSpecTest

ImparsableRoundChangeData tests a round change msg data imparsable to round change data struct

func InvalidRoundChangeData

func InvalidRoundChangeData() *tests.MsgProcessingSpecTest

InvalidRoundChangeData tests a round change msg data for which Validate() != nil

func JustificationDuplicateMsg

func JustificationDuplicateMsg() *tests.MsgProcessingSpecTest

JustificationDuplicateMsg tests a duplicate justification msg which shouldn't result in a justification quorum

func JustificationInvalidPrepareData

func JustificationInvalidPrepareData() *tests.MsgProcessingSpecTest

JustificationInvalidPrepareData tests a single prepare justification msg for which .validate() != nil

func JustificationInvalidRound

func JustificationInvalidRound() *tests.MsgProcessingSpecTest

JustificationInvalidRound tests justifications with prepared round > msg round

func JustificationInvalidSig

func JustificationInvalidSig() *tests.MsgProcessingSpecTest

JustificationInvalidSig tests a single prepare justification msg with wrong signature

func JustificationMultiSigners

func JustificationMultiSigners() *tests.MsgProcessingSpecTest

JustificationMultiSigners tests a single prepare justification msg with multiple signers

func JustificationNoQuorum

func JustificationNoQuorum() *tests.MsgProcessingSpecTest

JustificationNoQuorum tests justifications with no quorum

func JustificationPastRound

func JustificationPastRound() *tests.MsgProcessingSpecTest

JustificationPastRound tests a quorum of round change msgs for past round

func JustificationWrongRound

func JustificationWrongRound() *tests.MsgProcessingSpecTest

JustificationWrongRound tests a single prepare justification with round != prepared round

func JustificationWrongValue

func JustificationWrongValue() *tests.MsgProcessingSpecTest

JustificationWrongValue tests a single prepare justification with value != prepared value

func MultiSigner

func MultiSigner() *tests.MsgProcessingSpecTest

MultiSigner tests a round change msg with multiple signers

func NotProposer

func NotProposer() *tests.MsgProcessingSpecTest

NotProposer tests a justified round change but node is not the proposer

func PastRound

func PastRound() *tests.MsgProcessingSpecTest

PastRound tests a round change msg with past round

func PeerPrepared

func PeerPrepared() *tests.MsgProcessingSpecTest

PeerPrepared tests a round change quorum where a peer is the only one prepared

func PeerPreparedDifferentHeights

func PeerPreparedDifferentHeights() *tests.MsgProcessingSpecTest

PeerPreparedDifferentHeights tests a round change quorum where peers prepared on different heights

func QuorumMsgNotPrepared

func QuorumMsgNotPrepared() *tests.MsgProcessingSpecTest

QuorumMsgNotPrepared tests LIVENESS where the rc msg making a quorum for round change is not prev prepared (other are) which can cause a liveness issue with isReceivedProposalJustification

func QuorumNotPrepared

func QuorumNotPrepared() *tests.MsgProcessingSpecTest

QuorumNotPrepared tests a round change quorum for non-prepared state

func QuorumOrder1

func QuorumOrder1() *tests.MsgProcessingSpecTest

QuorumOrder1 tests LIVENESS where the rc quorum msgs in different order

func QuorumOrder2

func QuorumOrder2() *tests.MsgProcessingSpecTest

QuorumOrder2 tests LIVENESS where the rc quorum msgs in different order

func QuorumPrepared

func QuorumPrepared() *tests.MsgProcessingSpecTest

QuorumPrepared tests a round change msg for prepared state

func RoundChangePartialQuorum

func RoundChangePartialQuorum() *tests.MsgProcessingSpecTest

RoundChangePartialQuorum tests a round change msgs with partial quorum

func UnknownSigner

func UnknownSigner() *tests.MsgProcessingSpecTest

UnknownSigner tests a signed round change msg with an unknown signer

func ValidJustification

func ValidJustification() *tests.MsgProcessingSpecTest

ValidJustification tests a valid rc quorum justification

func WrongHeight

func WrongHeight() *tests.MsgProcessingSpecTest

WrongHeight tests a round change msg with wrong height

func WrongSig

func WrongSig() *tests.MsgProcessingSpecTest

WrongSig tests a signed round change msg with 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