lib

package
v0.0.0-...-24dd27c Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockUpdate

func NewBlockUpdate(block engine.ExecutableData, beaconRoot common.Hash) (*blockUpdate, error)

func NewFetcher

func NewFetcher(config CLConfig, sink ElApi) (*fetcher, error)

func NewRelayPI

func NewRelayPI(config []ELConfig) (*relayPI, error)

Types

type CLConfig

type CLConfig struct {
	Name    string
	Address string
	Headers map[string]string
}

type Config

type Config struct {
	ElClients []ELConfig
	ClClient  CLConfig
}

type ELConfig

type ELConfig struct {
	Name      string
	Address   string
	Headers   map[string]string
	JwtSecret string
}

type ElApi

type ElApi interface {
	// ForkchoiceUpdatedV1 informs the EL about the most recent head.
	ForkchoiceUpdatedV1(update engine.ForkchoiceStateV1, payloadAttributes *engine.PayloadAttributes) (engine.ForkChoiceResponse, error)
	// ExchangeTransitionConfigurationV1 checks the given configuration against the configuration of the node.
	ExchangeTransitionConfigurationV1(config engine.TransitionConfigurationV1) (*engine.TransitionConfigurationV1, error)
	// GetPayloadV1 returns a cached payload by id.
	GetPayloadV1(payloadID engine.PayloadID) (*engine.ExecutableData, error)
	// NewPayloadV3 creates an Eth1 block, inserts it in the chain, and returns the status of the chain.
	NewPayloadV3(params engine.ExecutableData, versionedHashes []common.Hash, beaconRoot *common.Hash) (engine.PayloadStatusV1, error)

	// Name for the EL, as per configuration.
	Name() string
}

Jump to

Keyboard shortcuts

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