changeround

package
v0.1.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeToRound2AndDecide

type ChangeToRound2AndDecide struct {
	// contains filtered or unexported fields
}

ChangeToRound2AndDecide tests coming to consensus after a non prepared change round

func (*ChangeToRound2AndDecide) MessagesSequence

func (test *ChangeToRound2AndDecide) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*ChangeToRound2AndDecide) Name

func (test *ChangeToRound2AndDecide) Name() string

Name returns test name

func (*ChangeToRound2AndDecide) Prepare

func (test *ChangeToRound2AndDecide) Prepare(t *testing.T)

Prepare prepares the test

func (*ChangeToRound2AndDecide) Run

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

Run runs the test

type FullChangeRoundThePartialQuorumTheDecide

type FullChangeRoundThePartialQuorumTheDecide struct {
	// contains filtered or unexported fields
}

FullChangeRoundThePartialQuorumTheDecide tests coming to consensus after an f+1 (after change round)

func (*FullChangeRoundThePartialQuorumTheDecide) MessagesSequence

MessagesSequence includes all test messages

func (*FullChangeRoundThePartialQuorumTheDecide) Name

Name returns test name

func (*FullChangeRoundThePartialQuorumTheDecide) Prepare

Prepare prepares the test

func (*FullChangeRoundThePartialQuorumTheDecide) Run

Run runs the test

type FuturePrePrepareAfterChangeRound

type FuturePrePrepareAfterChangeRound struct {
	// contains filtered or unexported fields
}

FuturePrePrepareAfterChangeRound tests handling a pre-prepare msgs received before a change round happened

func (*FuturePrePrepareAfterChangeRound) MessagesSequence

func (test *FuturePrePrepareAfterChangeRound) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*FuturePrePrepareAfterChangeRound) Name

Name returns test name

func (*FuturePrePrepareAfterChangeRound) Prepare

func (test *FuturePrePrepareAfterChangeRound) Prepare(t *testing.T)

Prepare prepares the test

func (*FuturePrePrepareAfterChangeRound) Run

Run runs the test

type NotPreparedError

type NotPreparedError struct {
	// contains filtered or unexported fields
}

NotPreparedError tests coming to consensus after a non prepared change round

func (*NotPreparedError) MessagesSequence

func (test *NotPreparedError) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*NotPreparedError) Name

func (test *NotPreparedError) Name() string

Name returns test name

func (*NotPreparedError) Prepare

func (test *NotPreparedError) Prepare(t *testing.T)

Prepare prepares the test

func (*NotPreparedError) Run

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

Run runs the test

type PartialQuorum

type PartialQuorum struct {
	// contains filtered or unexported fields
}

PartialQuorum tests partial round change behaviour

func (*PartialQuorum) MessagesSequence

func (test *PartialQuorum) MessagesSequence(t *testing.T) [][]*proto.SignedMessage

MessagesSequence includes all test messages

func (*PartialQuorum) Name

func (test *PartialQuorum) Name() string

Name returns test name

func (*PartialQuorum) Prepare

func (test *PartialQuorum) Prepare(t *testing.T)

Prepare prepares the test

func (*PartialQuorum) Run

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

Run runs the test

type PreparedFollowedByPrePrepared

type PreparedFollowedByPrePrepared struct {
	// contains filtered or unexported fields
}

PreparedFollowedByPrePrepared tests a pre-prepare following a change round with justification of a previously prepared round

func (*PreparedFollowedByPrePrepared) MessagesSequence

func (test *PreparedFollowedByPrePrepared) MessagesSequence(t *testing.T) []*proto.SignedMessage

MessagesSequence includes all test messages

func (*PreparedFollowedByPrePrepared) Name

Name returns test name

func (*PreparedFollowedByPrePrepared) Prepare

func (test *PreparedFollowedByPrePrepared) Prepare(t *testing.T)

Prepare prepares the test

func (*PreparedFollowedByPrePrepared) Run

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

Run runs the test

Jump to

Keyboard shortcuts

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