roundchange

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DuplicateMsgPartialQuorum

func DuplicateMsgPartialQuorum() *tests.MsgProcessingSpecTest

DuplicateMsgPartialQuorum tests a duplicate rc msg that is added to container but shouldn't result in a partial quorum

func DuplicateMsgPrepared

func DuplicateMsgPrepared() *tests.MsgProcessingSpecTest

DuplicateMsgPrepared tests a duplicate rc msg (one not prepared and one prepared) with following quorum of rc msgs.

func DuplicateMsgQuorum

func DuplicateMsgQuorum() *tests.MsgProcessingSpecTest

DuplicateMsgQuorum tests a duplicate rc msg that is added to container but shouldn't result in a quorum

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 F1SpeedupDifferentRounds

func F1SpeedupDifferentRounds() *tests.MsgProcessingSpecTest

F1SpeedupDifferentRounds tests catching up to higher rounds via f+1 speedup, other peers are all in different rounds

func F1SpeedupPrepared

func F1SpeedupPrepared() *tests.MsgProcessingSpecTest

F1SpeedupPrepared tests catching up to higher rounds via f+1 speedup, other peers at the same round and already prepared

func FutureRound

func FutureRound() *tests.MsgProcessingSpecTest

FutureRound tests a round change msg with future round

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 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 NextProposalValueWrong

func NextProposalValueWrong() *tests.MsgProcessingSpecTest

NextProposalValueWrong tests a justified round change msg prepare value != next proposal value

func NotPrepared

func NotPrepared() *tests.MsgProcessingSpecTest

NotPrepared tests a round change msg for non-prepared state

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 Prepared

func Prepared() *tests.MsgProcessingSpecTest

Prepared tests a round change msg for prepared state

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