loader

package
v6.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SettingsLoader

type SettingsLoader struct {
	// contains filtered or unexported fields
}

func NewProposerSettingsLoader

func NewProposerSettingsLoader(cliCtx *cli.Context, db iface.ValidatorDB, opts ...SettingsLoaderOption) (*SettingsLoader, error)

NewProposerSettingsLoader returns a new proposer settings loader that can process the proposer settings based on flag options

func (*SettingsLoader) Load

func (psl *SettingsLoader) Load(cliCtx *cli.Context) (*proposer.Settings, error)

Load saves the proposer settings to the database

type SettingsLoaderOption

type SettingsLoaderOption func(cliCtx *cli.Context, psl *SettingsLoader) error

SettingsLoaderOption sets additional options that affect the proposer settings

func WithBuilderConfig

func WithBuilderConfig() SettingsLoaderOption

WithBuilderConfig applies the --enable-builder flag to proposer settings

func WithGasLimit

func WithGasLimit() SettingsLoaderOption

WithGasLimit applies the --suggested-gas-limit flag to proposer settings

Jump to

Keyboard shortcuts

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