sync

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSyncMsg

func ExtractSyncMsg(msg *message.SSVMessage) (*message.SyncMessage, error)

ExtractSyncMsg extracts message.SyncMessage from message.SSVMessage

func GetHighest

func GetHighest(logger *zap.Logger, remoteMsgs ...p2pprotocol.SyncResult) (highest *message.SignedMessage, sender string)

GetHighest returns the highest message from the given collection

func GetHighestSignedMessage added in v0.3.0

func GetHighestSignedMessage(signedMsgs ...*message.SignedMessage) *message.SignedMessage

GetHighestSignedMessage returns the highest decided among the given set of messages. assuming all messages are of the same identifier

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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