Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Follower ¶
func Follower( log zerolog.Logger, forks hotstuff.Forks, validator hotstuff.Validator, 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 Forks 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, 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, 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 receives the list `pending` that should contain _all_ blocks that have been received but not finalized, and that share the latest finalized block as a common ancestor.
Types ¶
This section is empty.