commit

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecideDifferentValue

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

DecideDifferentValue tests that a different commit value can be accepted than the prepared value. This is a byzantine behaviour by 2/3 of the nodes as the iBFT protocol dictates broadcasting a commit message with the prepared value TODO - should we allow this?

func (*DecideDifferentValue) MessagesSequence

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

MessagesSequence includes all test messages

func (*DecideDifferentValue) Name

func (test *DecideDifferentValue) Name() string

Name returns test name

func (*DecideDifferentValue) Prepare

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

Prepare prepares test

func (*DecideDifferentValue) Run

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

Run runs the test

type FutureRoundDecided

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

FutureRoundDecided tests a future commit message arrives and decides the instance

func (*FutureRoundDecided) MessagesSequence

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

MessagesSequence includes all messages

func (*FutureRoundDecided) Name

func (test *FutureRoundDecided) Name() string

Name returns test name

func (*FutureRoundDecided) Prepare

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

Prepare prepares the test

func (*FutureRoundDecided) Run

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

Run runs the test

type PrevRoundDecided

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

PrevRoundDecided tests a delayed commit message from previous round arrives and decides the instance

func (*PrevRoundDecided) MessagesSequence

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

MessagesSequence includes all messages

func (*PrevRoundDecided) Name

func (test *PrevRoundDecided) Name() string

Name returns test name

func (*PrevRoundDecided) Prepare

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

Prepare prepares the test

func (*PrevRoundDecided) Run

func (test *PrevRoundDecided) 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