prepare

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 DuplicateMsg

func DuplicateMsg() *tests.MsgProcessingSpecTest

DuplicateMsg tests a duplicate prepare msg processing

func DuplicateMsgQuorum

func DuplicateMsgQuorum() *tests.MsgProcessingSpecTest

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

func FutureRound

func FutureRound() *tests.MsgProcessingSpecTest

FutureRound tests prepare for signedProposal.Message.Round > state.Round

func HappyFlow

func HappyFlow() *tests.MsgProcessingSpecTest

HappyFlow tests a quorum of prepare msgs

func ImparsableProposalData

func ImparsableProposalData() *tests.MsgProcessingSpecTest

ImparsableProposalData tests a prepare msg received with imparsable data

func InvalidPrepareData

func InvalidPrepareData() *tests.MsgProcessingSpecTest

InvalidPrepareData tests prepare data for which prepareData.validate() != nil

func MultiSigner

func MultiSigner() *tests.MsgProcessingSpecTest

MultiSigner tests prepare msg with > 1 signers

func NoPreviousProposal

func NoPreviousProposal() *tests.MsgProcessingSpecTest

NoPreviousProposal tests prepare msg without receiving a previous proposal state.ProposalAcceptedForCurrentRound == nil

func OldRound

func OldRound() *tests.MsgProcessingSpecTest

OldRound tests prepare for signedProposal.Message.Round < state.Round

func PostDecided

func PostDecided() *tests.MsgProcessingSpecTest

PostDecided tests processing prepare msg after instance decided

func UnknownSigner

func UnknownSigner() *tests.MsgProcessingSpecTest

UnknownSigner tests a single prepare received with an unknown signer

func WrongData

func WrongData() *tests.MsgProcessingSpecTest

WrongData tests prepare msg with data != acceptedProposalData.Data

func WrongHeight

func WrongHeight() *tests.MsgProcessingSpecTest

WrongHeight tests prepare msg received with the wrong height

func WrongSignature

func WrongSignature() *tests.MsgProcessingSpecTest

WrongSignature tests a single prepare 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