recovery

package
v0.26.14-test-synchron... Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Follower

func Follower(
	log zerolog.Logger,
	finalizer forks.Finalizer,
	validator hotstuff.Validator,
	finalized *flow.Header,
	pending []*flow.Header,
) error

Follower recovers the HotStuff state for a follower instance. It reads the pending blocks from storage and pass them to the input Finalizer instance to recover its state from before the restart.

func Participant

func Participant(
	log zerolog.Logger,
	forks hotstuff.Forks,
	voteAggregator hotstuff.VoteAggregator,
	validator hotstuff.Validator,
	finalized *flow.Header,
	pending []*flow.Header,
) error

Participant recovers the HotStuff state for a consensus participant. It reads the pending blocks from storage and pass them to the input Forks instance to recover its state from before the restart.

func Recover

func Recover(log zerolog.Logger, finalized *flow.Header, pending []*flow.Header, validator hotstuff.Validator, onProposal func(*model.Proposal) error) error

Recover implements the core logic for recovering HotStuff state after a restart. It accepts the finalized block and a list of pending blocks that have been received but not finalized, and that share the latest finalized block as a common ancestor.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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