chainedhotstuff

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 2 Imported by: 1

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

func New added in v0.3.0

func New() consensus.Rules

New returns a new chainedhotstuff instance.

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.

Jump to

Keyboard shortcuts

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