lastdecided

package
v0.2.1-rc.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: GPL-3.0 Imports: 7 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 message.Identifier, getLastDecided GetLastDecided) (*message.SignedMessage, string, message.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 message.Identifier) (*message.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