Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FollowerLogic ¶
type FollowerLogic struct {
// contains filtered or unexported fields
}
FollowerLogic runs in non-consensus nodes. It informs other components within the node about finalization of blocks. The consensus Follower consumes all block proposals broadcasts by the consensus node, verifies the block header and locally evaluates the finalization rules.
CAUTION: Follower is NOT CONCURRENCY safe
func New ¶
func New( log zerolog.Logger, validator hotstuff.Validator, finalizationLogic hotstuff.Forks, ) (*FollowerLogic, error)
New creates a new FollowerLogic instance
func (*FollowerLogic) AddBlock ¶
func (f *FollowerLogic) AddBlock(blockProposal *model.Proposal) error
AddBlock processes the given block proposal
func (*FollowerLogic) FinalizedBlock ¶
func (f *FollowerLogic) FinalizedBlock() *model.Block
FinalizedBlock returns the latest finalized block
Click to show internal directories.
Click to hide internal directories.