fasthotstuff

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 1 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) 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.

Jump to

Keyboard shortcuts

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