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
Click to show internal directories.
Click to hide internal directories.