tchs

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 Tchs

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

func NewTchs

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

func (*Tchs) GetChainStatus

func (th *Tchs) GetChainStatus() string

func (*Tchs) GetHighQC

func (th *Tchs) GetHighQC() *blockchain.QC

func (*Tchs) MakeProposal

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

func (*Tchs) ProcessBlock

func (th *Tchs) ProcessBlock(block *blockchain.Block) error

func (*Tchs) ProcessLocalTmo

func (th *Tchs) ProcessLocalTmo(view types.View)

func (*Tchs) ProcessRemoteTmo

func (th *Tchs) ProcessRemoteTmo(tmo *pacemaker.TMO)

func (*Tchs) ProcessVote

func (th *Tchs) ProcessVote(vote *blockchain.Vote)

Jump to

Keyboard shortcuts

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