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) ChainLength ¶ added in v0.5.0
func (fhs *FastHotStuff) ChainLength() int
ChainLength returns the number of blocks that need to be chained together in order to commit.
func (*FastHotStuff) CommitRule ¶
func (fhs *FastHotStuff) CommitRule(block *hotstuff.Block) *hotstuff.Block
CommitRule decides whether an ancestor of the block can be committed.
func (*FastHotStuff) InitModule ¶ added in v0.5.0
func (fhs *FastHotStuff) InitModule(mods *modules.Core)
InitModule initializes the module.
func (*FastHotStuff) VoteRule ¶
func (fhs *FastHotStuff) VoteRule(proposal hotstuff.ProposeMsg) bool
VoteRule decides whether to vote for the proposal or not.
Click to show internal directories.
Click to hide internal directories.