synchronizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synchronizer

type Synchronizer struct {
	hotstuff.LeaderRotation
	// contains filtered or unexported fields
}

func New

func New(leaderRotation hotstuff.LeaderRotation, initialTimeout time.Duration) *Synchronizer

func (*Synchronizer) Init

func (s *Synchronizer) Init(hs hotstuff.Consensus)

func (*Synchronizer) OnFinishQC

func (s *Synchronizer) OnFinishQC()

OnFinishQC should be called when a replica has created a new qc

func (*Synchronizer) OnNewView

func (s *Synchronizer) OnNewView()

OnNewView should be called when a replica receives a valid NewView message

func (*Synchronizer) OnPropose

func (s *Synchronizer) OnPropose()

OnPropose should be called when a replica has received a new valid proposal.

func (*Synchronizer) Start

func (s *Synchronizer) Start()

Start starts the synchronizer

func (*Synchronizer) Stop

func (s *Synchronizer) Stop()

Stop stops the synchronizer

Jump to

Keyboard shortcuts

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