hotstuff

package
v0.0.0-...-2e52d37 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const FORK = "fork"

Variables

This section is empty.

Functions

This section is empty.

Types

type HotStuff

type HotStuff struct {
	node.Node
	election.Election
	// contains filtered or unexported fields
}

func NewHotStuff

func NewHotStuff(
	node node.Node,
	pm *pacemaker.Pacemaker,
	elec election.Election,
	committedBlocks chan *blockchain.Block,
	forkedBlocks chan *blockchain.Block) *HotStuff

func (*HotStuff) GetChainStatus

func (hs *HotStuff) GetChainStatus() string

func (*HotStuff) GetHighQC

func (hs *HotStuff) GetHighQC() *blockchain.QC

func (*HotStuff) MakeProposal

func (hs *HotStuff) MakeProposal(view types.View, payload []*message.Transaction) *blockchain.Block

func (*HotStuff) ProcessBlock

func (hs *HotStuff) ProcessBlock(block *blockchain.Block) error

func (*HotStuff) ProcessLocalTmo

func (hs *HotStuff) ProcessLocalTmo(view types.View)

func (*HotStuff) ProcessRemoteTmo

func (hs *HotStuff) ProcessRemoteTmo(tmo *pacemaker.TMO)

func (*HotStuff) ProcessVote

func (hs *HotStuff) ProcessVote(vote *blockchain.Vote)

Jump to

Keyboard shortcuts

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