fasthotstuff

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fasthotstuff implements the two-chain Fast-HotStuff protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() consensus.Rules

New returns a new FastHotStuff instance.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL