Documentation ¶
Index ¶
- type Config
- type Node
- func (b *Node) GetVersionImmuneBlock(ctx context.Context, blockID string) (*VersionImmuneBlock, error)
- func (b *Node) Metadata() *services.MetadataService
- func (b *Node) Node() bn.Node
- func (b *Node) OnReady(_ context.Context, callback func(ctx context.Context) error)
- func (b *Node) Start(ctx context.Context) error
- func (b *Node) Synced(ctx context.Context) error
- type VersionImmuneBlock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The address of the Beacon node to connect to NodeAddress string `yaml:"nodeAddress"` // BeaconNodeHeaders is a map of headers to send to the beacon node. NodeHeaders map[string]string `yaml:"nodeHeaders"` // BeaconSubscriptions is a list of beacon subscriptions to subscribe to. BeaconSubscriptions *[]string `yaml:"beaconSubscriptions"` // InvalidGossipVerifiedBlocksPath is the path to watch for invalid gossip verified blocks from the beacon node. InvalidGossipVerifiedBlocksPath *string `yaml:"invalidGossipVerifiedBlocksPath"` // InvalidGossipVerifiedBlobsPath is the path to watch for invalid gossip verified blobs from the beacon node. InvalidGossipVerifiedBlobsPath *string `yaml:"invalidGossipVerifiedBlobsPath"` }
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) GetVersionImmuneBlock ¶ added in v0.0.21
func (*Node) Metadata ¶
func (b *Node) Metadata() *services.MetadataService
type VersionImmuneBlock ¶ added in v0.0.21
type VersionImmuneBlock struct { Data struct { Message struct { Body struct { ExecutionPayload struct { BlockNumber string `json:"block_number"` BlockHash string `json:"block_hash"` } `json:"execution_payload"` } `json:"body"` } `json:"message"` } `json:"data"` }
VersionImmuneBlock is a block that is immune to version changes. If this structure changes, good luck with your upgrade.
Click to show internal directories.
Click to hide internal directories.