validator_service_config

package
v4.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: GPL-3.0 Imports: 8 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderConfig

type BuilderConfig struct {
	Enabled  bool             `json:"enabled" yaml:"enabled"`
	GasLimit validator.Uint64 `json:"gas_limit,omitempty" yaml:"gas_limit,omitempty"`
	Relays   []string         `json:"relays,omitempty" yaml:"relays,omitempty"`
}

BuilderConfig is the struct representation of the JSON config file set in the validator through the CLI. GasLimit is a number set to help the network decide on the maximum gas in each block.

func ToBuilderConfig added in v4.0.5

func ToBuilderConfig(from *validatorpb.BuilderConfig) *BuilderConfig

ToBuilderConfig converts protobuf to a builder config used in inmemory storage

func (*BuilderConfig) Clone added in v4.0.5

func (bc *BuilderConfig) Clone() *BuilderConfig

Clone creates a deep copy of builder config

func (*BuilderConfig) ToPayload added in v4.0.5

func (bc *BuilderConfig) ToPayload() *validatorpb.BuilderConfig

ToPayload converts Builder Config to the protobuf object

type FeeRecipientConfig

type FeeRecipientConfig struct {
	FeeRecipient common.Address
}

FeeRecipientConfig is a prysm internal representation to see if the fee recipient was set.

func (*FeeRecipientConfig) Clone added in v4.0.5

Clone creates a deep copy of fee recipient config

type ProposerOption

type ProposerOption struct {
	FeeRecipientConfig *FeeRecipientConfig
	BuilderConfig      *BuilderConfig
}

ProposerOption is a Prysm internal representation of the ProposerOptionPayload on the validator client in bytes format instead of hex.

func (*ProposerOption) Clone added in v4.0.5

func (po *ProposerOption) Clone() *ProposerOption

Clone creates a deep copy of proposer option

type ProposerSettings

type ProposerSettings struct {
	ProposeConfig map[[fieldparams.BLSPubkeyLength]byte]*ProposerOption
	DefaultConfig *ProposerOption
}

ProposerSettings is a Prysm internal representation of the fee recipient config on the validator client. validatorpb.ProposerSettingsPayload maps to ProposerSettings on import through the CLI.

func ToSettings added in v4.0.5

ToSettings converts struct to ProposerSettings

func (*ProposerSettings) Clone added in v4.0.5

func (ps *ProposerSettings) Clone() *ProposerSettings

Clone creates a deep copy of the proposer settings

func (*ProposerSettings) ToPayload added in v4.0.5

ToPayload converts struct to ProposerSettingsPayload

Jump to

Keyboard shortcuts

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