Documentation
¶
Index ¶
- type Config
- type Features
- func (f Features) EnabledFlags() []string
- func (f Features) GetFetchBeaconBadBlob() bool
- func (f Features) GetFetchBeaconBadBlock() bool
- func (f Features) GetFetchBeaconBlock() bool
- func (f Features) GetFetchBeaconState() bool
- func (f Features) GetFetchExecutionBadBlock() bool
- func (f Features) GetFetchExecutionBlockTrace() bool
- func (f Features) Validate() error
- type FetchOldBeaconStates
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Execution configuration
Execution *execution.Config `yaml:"execution"`
// Beacon configuration
Beacon *beacon.Config `yaml:"beacon"`
// OverrideNetworkName is the name of the network to use for the agent.
// If not set, the network name will be retrieved from the beacon node.
OverrideNetworkName string `yaml:"overrideNetworkName" default:""`
// Features configuration
Features Features `yaml:"features"`
// SyncToleranceSlots is the age of the block in slots that is tolerated before it is not fetched.
// This is to prevent fetching blocks that are too far behind the head.
SyncToleranceSlots phase0.Slot `yaml:"syncToleranceSlots" default:"64"`
// FetchOldBeaconStates is a flag to fetch beacon states that are more then
// a certain number of epochs old.
// This is to prevent fetching states that are too far behind the head.
FetchOldBeaconStates *FetchOldBeaconStates `yaml:"fetchOldBeaconStates" default:"{\"enabled\": false}"`
}
type Features ¶ added in v0.0.19
type Features struct {
FetchBeaconState *bool `yaml:"fetchBeaconState" default:"true"`
FetchBeaconBlock *bool `yaml:"fetchBeaconBlock" default:"true"`
FetchBeaconBadBlock *bool `yaml:"fetchBeaconBadBlock" default:"true"`
FetchBeaconBadBlob *bool `yaml:"fetchBeaconBadBlob" default:"true"`
FetchExecutionBlockTrace *bool `yaml:"fetchExecutionBlockTrace" default:"true"`
FetchExecutionBadBlock *bool `yaml:"fetchExecutionBadBlock" default:"true"`
}
Features contains feature flags for the agent.
func (Features) EnabledFlags ¶ added in v0.0.19
EnabledFlags returns a list of enabled feature flags.
func (Features) GetFetchBeaconBadBlob ¶ added in v0.0.19
func (Features) GetFetchBeaconBadBlock ¶ added in v0.0.19
func (Features) GetFetchBeaconBlock ¶ added in v0.0.19
func (Features) GetFetchBeaconState ¶ added in v0.0.19
func (Features) GetFetchExecutionBadBlock ¶ added in v0.0.19
func (Features) GetFetchExecutionBlockTrace ¶ added in v0.0.19
type FetchOldBeaconStates ¶ added in v0.0.30
Click to show internal directories.
Click to hide internal directories.