lastdecided

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	GetLastDecided(ctx context.Context, identifier spectypes.MessageID, getLastDecided GetLastDecided) (*specqbft.SignedMessage, string, specqbft.Height, error)
}

Fetcher is responsible for fetching last/highest decided messages from other peers in the network

func NewLastDecidedFetcher

func NewLastDecidedFetcher(logger *zap.Logger, syncer p2pprotocol.Syncer) Fetcher

NewLastDecidedFetcher creates a new instance of fetcher

type GetLastDecided

type GetLastDecided func(i spectypes.MessageID) (*specqbft.SignedMessage, error)

GetLastDecided reads last decided message from store

Jump to

Keyboard shortcuts

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