Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
ErrNotFound represents a not found error
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher interface { // GetChangeRoundMessages fetches change round messages for the given identifier and height GetChangeRoundMessages(identifier message.Identifier, height message.Height, handler MsgHandler) error }
Fetcher is responsible for fetching change round messages from other peers in the subnet
func NewLastRoundFetcher ¶
func NewLastRoundFetcher(logger *zap.Logger, syncer p2pprotocol.Syncer) Fetcher
NewLastRoundFetcher returns an instance of changeRoundFetcher
type MsgHandler ¶
type MsgHandler func(*message.SignedMessage) error
MsgHandler handles incoming change round messages
Click to show internal directories.
Click to hide internal directories.