history

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 DecidedHandler

type DecidedHandler func(*specqbft.SignedMessage) error

DecidedHandler handles incoming decided messages

type Syncer

type Syncer interface {
	// SyncRange syncs decided messages for the given identifier and range
	SyncRange(ctx context.Context, identifier spectypes.MessageID, handler DecidedHandler, from, to specqbft.Height, targetPeers ...string) error
}

Syncer takes care for syncing decided history

func NewSyncer

func NewSyncer(logger *zap.Logger, netSyncer p2pprotocol.Syncer) Syncer

NewSyncer creates a new instance of history syncer

Jump to

Keyboard shortcuts

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