Documentation ¶
Overview ¶
Package chainedhotstuff implements the pipelined three-chain version of the HotStuff protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChainedHotStuff ¶ added in v0.3.0
type ChainedHotStuff struct {
// contains filtered or unexported fields
}
ChainedHotStuff implements the pipelined three-phase HotStuff protocol.
func (*ChainedHotStuff) CommitRule ¶ added in v0.3.0
func (hs *ChainedHotStuff) CommitRule(block *consensus.Block) *consensus.Block
CommitRule decides whether an ancestor of the block should be committed.
func (*ChainedHotStuff) InitConsensusModule ¶ added in v0.3.0
func (hs *ChainedHotStuff) InitConsensusModule(mods *consensus.Modules, _ *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 (*ChainedHotStuff) VoteRule ¶ added in v0.3.0
func (hs *ChainedHotStuff) 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.