watch

package
v0.0.0-...-3bf369e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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