Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestPayloadDeliveredByRelay ¶
func GetLatestPayloadDeliveredByRelay(dc *data.TransparencyClient) (*types.BidTrace, error)
GetLatestPayloadDeliveredByRelay uses the data transparency client to get the latest proposer payload delivered, which is used in the comparison with the proposed block to the network.
func Run ¶
func Run(cfg *Configuration) error
Run executes the main watcher logic. For every new proposer payload delivered by the relay, it asks the beacon client the corresponding block to perform the comparison and therefore verify if the commitment holds.
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
Configuration is used by the watch Run method and holds the common configuration only, as it does not require any extra configuration to perform the analysis for now.
func ConfigurationFromViper ¶
func ConfigurationFromViper(v *viper.Viper) *Configuration
ConfigurationFromViper creates a new Configuration using the base configuration extractor.