committeemember

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitteeMemberTest

type CommitteeMemberTest struct {
	Name                  string
	CommitteeMember       types.CommitteeMember
	Message               types.SignedSSVMessage
	ExpectedHasQuorum     bool
	ExpectedFullCommittee bool
	ExpectedError         string
}

func HasQuorum

func HasQuorum() *CommitteeMemberTest

HasQuorum tests msg with unique 2f+1 signers

func HasQuorum3f1

func HasQuorum3f1() *CommitteeMemberTest

HasQuorum3f1 tests msg with unique 3f+1 signers

func NoQuorumDuplicate

func NoQuorumDuplicate() *CommitteeMemberTest

NoQuorumDuplicate tests msg with < unique 2f+1 signers (but 2f+1 signers including duplicates)

func QuorumWithDuplicate

func QuorumWithDuplicate() *CommitteeMemberTest

QuorumWithDuplicate tests msg with unique 2f+1 signers (but also including duplicates)

func (*CommitteeMemberTest) GetUniqueMessageSignersCount

func (test *CommitteeMemberTest) GetUniqueMessageSignersCount() int

Returns the number of unique signers in the message signers list

func (*CommitteeMemberTest) Run

func (test *CommitteeMemberTest) Run(t *testing.T)

func (*CommitteeMemberTest) TestName

func (test *CommitteeMemberTest) TestName() string

Jump to

Keyboard shortcuts

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