commit

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentRound

func CurrentRound() tests.SpecTest

CurrentRound tests a commit msg with current round, should process

func DecidedFullData added in v0.3.0

func DecidedFullData() tests.SpecTest

DecidedFullData tests the aggregated commit returned when decided to include the full data

func DuplicateMsg

func DuplicateMsg() tests.SpecTest

DuplicateMsg tests a duplicate commit msg processing

func DuplicateSigners added in v0.2.7

func DuplicateSigners() tests.SpecTest

DuplicateSigners tests a multi signer commit msg with duplicate signers

func ForceStop added in v0.3.1

func ForceStop() tests.SpecTest

ForceStop tests processing a commit msg when instance force stopped

func FutureRound

func FutureRound() tests.SpecTest

FutureRound tests a commit msg received with a future round, should error

func HappyFlow

func HappyFlow() tests.SpecTest

HappyFlow tests a quorum of commits received after prepare quorum

func InvalidFullData added in v0.3.0

func InvalidFullData() tests.SpecTest

InvalidFullData tests signed commit with an invalid full data field (H(full data) != root)

func InvalidValCheck added in v0.2.7

func InvalidValCheck() tests.SpecTest

InvalidValCheck tests a quorum of commits received with an invalid value check

func MultiSignerNoOverlap

func MultiSignerNoOverlap() tests.SpecTest

MultiSignerNoOverlap tests a multi signer commit msg which doesn't overlap previous valid commits

func MultiSignerWithOverlap

func MultiSignerWithOverlap() tests.SpecTest

MultiSignerWithOverlap tests a multi signer commit msg which does overlap previous valid commit signers

func NoCommitQuorum added in v0.3.1

func NoCommitQuorum() tests.SpecTest

NoCommitQuorum tests the state of the QBFT instance when received commit messages don't create a quorum

func NoCommitQuorumStateComparison added in v0.3.1

func NoCommitQuorumStateComparison() *comparable.StateComparison

func NoPrepareQuorum added in v0.2.7

func NoPrepareQuorum() tests.SpecTest

NoPrepareQuorum tests a commit msg received without a previous prepare quorum

func NoPrevAcceptedProposal

func NoPrevAcceptedProposal() tests.SpecTest

NoPrevAcceptedProposal tests a commit msg received without a previous accepted proposal

func PastRound

func PastRound() tests.SpecTest

PastRound tests a commit msg with past round, should process but not decide

func PostCutoff added in v0.3.1

func PostCutoff() tests.SpecTest

PostCutoff tests processing a commit msg when round >= cutoff

func PostDecided

func PostDecided() tests.SpecTest

PostDecided tests processing a commit msg after instance decided

func UnknownSigner added in v0.2.7

func UnknownSigner() tests.SpecTest

UnknownSigner tests a single commit received with an unknown signer

func ValidFullData added in v0.3.0

func ValidFullData() tests.SpecTest

ValidFullData tests the signed commit with a valid full data field (H(full data) == root)

func WrongData1

func WrongData1() tests.SpecTest

WrongData1 tests commit msg with data != acceptedProposalData.Data

func WrongData2

func WrongData2() tests.SpecTest

WrongData2 tests a single commit received with a different commit data than the prepared data

func WrongHeight

func WrongHeight() tests.SpecTest

WrongHeight tests a commit msg received with the wrong height

Types

This section is empty.

Jump to

Keyboard shortcuts

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