secondstep

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Phase added in v0.4.0

type Phase struct {
	*reduction.Reduction
	// contains filtered or unexported fields
}

Phase is the implementation of the Selection step component.

func New added in v0.4.0

New creates and launches the component which responsibility is to reduce the candidates gathered as winner of the selection of all nodes in the committee and reduce them to just one candidate obtaining 64% of the committee vote. NB: we cannot push the agreement directly within the agreementChannel until we have a way to deduplicate it from the peer (the dupemap will not be notified of duplicates).

func (*Phase) Initialize added in v0.4.0

func (p *Phase) Initialize(re consensus.InternalPacket) consensus.PhaseFn

Initialize passes to this reduction step the best score collected during selection.

func (*Phase) Run added in v0.4.0

func (p *Phase) Run(ctx context.Context, queue *consensus.Queue, _, reductionChan chan message.Message, r consensus.RoundUpdate, step uint8) consensus.PhaseFn

Run the first reduction step until either there is a timeout, we reach 64% of votes, or we experience an unrecoverable error.

func (*Phase) SetNext added in v0.4.0

func (p *Phase) SetNext(next consensus.Phase)

SetNext sets the next step to be returned at the end of this one.

func (*Phase) String added in v0.4.0

func (p *Phase) String() string

String representation of this Phase.

Jump to

Keyboard shortcuts

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