consensus

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecidedSlashableAttestation added in v1.0.0

func DecidedSlashableAttestation() tests.SpecTest

DecidedSlashableAttestation tests that a slashable attestation is not signed

func EmptySignature added in v1.0.0

func EmptySignature() tests.SpecTest

EmptySignature tests an invalid consensus message with an empty signature

func FutureDecided

func FutureDecided() tests.SpecTest

FutureDecided tests a running instance at a certain height, then processing a decided msg from a larger height. then returning an error and don't move to post consensus as it's not the same instance decided

func FutureDecidedNoInstance

func FutureDecidedNoInstance() tests.SpecTest

FutureDecidedNoInstance tests processing a decided msg from a larger height with no running instance then returning an error and don't move to post consensus as it's not the same instance decided

func FutureMessage

func FutureMessage() tests.SpecTest

FutureMessage tests a valid proposal future msg

func InvalidDecidedValue

func InvalidDecidedValue() tests.SpecTest

InvalidDecidedValue tests an invalid decided value ValidatorConsensusData.Validate() != nil (unknown duty role)

func InvalidSignature

func InvalidSignature() tests.SpecTest

InvalidSignature tests a consensus message with an invalid signature

func NilSSVMessage added in v1.0.0

func NilSSVMessage() tests.SpecTest

NilSSVMessage tests an invalid consensus message with a nil SSVMessage

func NoSignatures added in v1.0.0

func NoSignatures() tests.SpecTest

NoSignatures tests an invalid consensus message with no signatures

func NoSigners added in v1.0.0

func NoSigners() tests.SpecTest

NoSigners tests an invalid consensus message with no signers

func NonUniqueSigners added in v1.0.0

func NonUniqueSigners() tests.SpecTest

NonUniqueSigners tests an invalid consensus message with non unique signers

func PastMessage

func PastMessage() tests.SpecTest

PastMessage tests a valid proposal past msg

func PostDecided

func PostDecided() tests.SpecTest

PostDecided tests a valid commit msg after returned decided already

func PostFinish

func PostFinish() tests.SpecTest

PostFinish tests a valid commit msg after runner finished

func SignersAndSignaturesWithDifferentLength added in v1.0.0

func SignersAndSignaturesWithDifferentLength() tests.SpecTest

SignersAndSignaturesWithDifferentLength tests an invalid consensus message with different length of signers and signatures

func ValidDecided

func ValidDecided() tests.SpecTest

ValidDecided tests a valid decided value

func ValidDecided10Operators

func ValidDecided10Operators() tests.SpecTest

ValidDecided10Operators tests a valid decided value (10 operators)

func ValidDecided13Operators

func ValidDecided13Operators() tests.SpecTest

ValidDecided13Operators tests a valid decided value (13 operators)

func ValidDecided7Operators

func ValidDecided7Operators() tests.SpecTest

ValidDecided7Operators tests a valid decided value (7 operators)

func ValidMessage

func ValidMessage() tests.SpecTest

ValidMessage tests a valid consensus message

func ZeroSigner added in v1.0.0

func ZeroSigner() tests.SpecTest

ZeroSigner tests an invalid consensus message with a zero signer

Types

This section is empty.

Jump to

Keyboard shortcuts

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