validator_service_config

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: GPL-3.0 Imports: 3 Imported by: 7

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 Uint64   `json:"gas_limit,omitempty" yaml:"gas_limit,omitempty"`
	Relays   []string `json:"relays" yaml:"relays"`
}

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.

type FeeRecipientConfig added in v3.2.2

type FeeRecipientConfig struct {
	FeeRecipient common.Address
}

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.

type ProposerOptionPayload

type ProposerOptionPayload struct {
	FeeRecipient  string         `json:"fee_recipient" yaml:"fee_recipient"`
	BuilderConfig *BuilderConfig `json:"builder" yaml:"builder"`
}

ProposerOptionPayload is the struct representation of the JSON config file set in the validator through the CLI. FeeRecipient is set to an eth address in hex string format with 0x prefix.

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. ProposerSettingsPayload maps to ProposerSettings on import through the CLI.

type ProposerSettingsPayload

type ProposerSettingsPayload struct {
	ProposerConfig map[string]*ProposerOptionPayload `json:"proposer_config" yaml:"proposer_config"`
	DefaultConfig  *ProposerOptionPayload            `json:"default_config" yaml:"default_config"`
}

ProposerSettingsPayload is the struct representation of the JSON or YAML payload set in the validator through the CLI. ProposerConfig is the map of validator address to fee recipient options all in hex format. DefaultConfig is the default fee recipient address for all validators unless otherwise specified in the propose config.required.

type Uint64

type Uint64 uint64

func (*Uint64) UnmarshalJSON

func (u *Uint64) UnmarshalJSON(bs []byte) error

func (*Uint64) UnmarshalYAML

func (u *Uint64) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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