fhs

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 Fhs

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

func NewFhs

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

func (*Fhs) GetChainStatus

func (f *Fhs) GetChainStatus() string

func (*Fhs) GetHighQC

func (f *Fhs) GetHighQC() *blockchain.QC

func (*Fhs) MakeProposal

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

func (*Fhs) ProcessBlock

func (f *Fhs) ProcessBlock(block *blockchain.Block) error

func (*Fhs) ProcessLocalTmo

func (f *Fhs) ProcessLocalTmo(view types.View)

func (*Fhs) ProcessRemoteTmo

func (f *Fhs) ProcessRemoteTmo(tmo *pacemaker.TMO)

func (*Fhs) ProcessVote

func (f *Fhs) ProcessVote(vote *blockchain.Vote)

Jump to

Keyboard shortcuts

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