Documentation ¶
Overview ¶
Package fasthotstuff implements the two-chain Fast-HotStuff protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FastHotStuff ¶
type FastHotStuff struct {
// contains filtered or unexported fields
}
FastHotStuff is an implementation of the Fast-HotStuff protocol.
func (*FastHotStuff) CommitRule ¶
func (fhs *FastHotStuff) CommitRule(block *consensus.Block) *consensus.Block
CommitRule decides whether an ancestor of the block can be committed.
func (*FastHotStuff) InitConsensusModule ¶
func (fhs *FastHotStuff) InitConsensusModule(mods *consensus.Modules, opts *consensus.OptionsBuilder)
InitConsensusModule gives the module a reference to the Modules object. It also allows the module to set module options using the OptionsBuilder.
func (*FastHotStuff) VoteRule ¶
func (fhs *FastHotStuff) VoteRule(proposal consensus.ProposeMsg) bool
VoteRule decides whether to vote for the proposal or not.
Click to show internal directories.
Click to hide internal directories.