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 BuilderConfigFromConsensus ¶
func BuilderConfigFromConsensus(from *validatorpb.BuilderConfig) *BuilderConfig
BuilderConfigFromConsensus converts protobuf to a builder config used in in-memory storage
func (*BuilderConfig) Clone ¶
func (bc *BuilderConfig) Clone() *BuilderConfig
Clone creates a deep copy of builder config
func (*BuilderConfig) ToConsensus ¶
func (bc *BuilderConfig) ToConsensus() *validatorpb.BuilderConfig
ToConsensus converts Builder Config to the protobuf object
type FeeRecipientConfig ¶
FeeRecipientConfig is a prysm internal representation to see if the fee recipient was set.
func (*FeeRecipientConfig) Clone ¶
func (fo *FeeRecipientConfig) Clone() *FeeRecipientConfig
Clone creates a deep copy of fee recipient config
type GraffitiConfig ¶
type GraffitiConfig struct {
Graffiti string
}
GraffitiConfig is a prysm internal representation to see if the graffiti was set.
func (*GraffitiConfig) Clone ¶
func (gc *GraffitiConfig) Clone() *GraffitiConfig
Clone creates a deep copy of graffiti config
type Option ¶
type Option struct { FeeRecipientConfig *FeeRecipientConfig BuilderConfig *BuilderConfig GraffitiConfig *GraffitiConfig }
Option is a Prysm internal representation of the ProposerOptionPayload on the validator client in bytes format instead of hex.
func (*Option) ToConsensus ¶
func (po *Option) ToConsensus() *validatorpb.ProposerOptionPayload
type Settings ¶
type Settings struct { ProposeConfig map[[fieldparams.BLSPubkeyLength]byte]*Option DefaultConfig *Option }
Settings is a Prysm internal representation of the fee recipient config on the validator client. validatorpb.ProposerSettingsPayload maps to Settings on import through the CLI.
func SettingFromConsensus ¶
func SettingFromConsensus(ps *validatorpb.ProposerSettingsPayload) (*Settings, error)
SettingFromConsensus converts struct to Settings while verifying the fields
func (*Settings) ShouldBeSaved ¶
ShouldBeSaved goes through checks to see if the value should be savable Pseudocode: conditions for being saved into the database 1. settings are not nil 2. proposeconfig is not nil (this defines specific settings for each validator key), default config can be nil in this case and fall back to beacon node settings 3. defaultconfig is not nil, meaning it has at least fee recipient settings (this defines general settings for all validator keys but keys will use settings from propose config if available), propose config can be nil in this case
func (*Settings) ToConsensus ¶
func (ps *Settings) ToConsensus() *validatorpb.ProposerSettingsPayload
ToConsensus converts struct to ProposerSettingsPayload