Skip to content

Commit

Permalink
feat(beacon): Swap default event stream subscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jan 13, 2025
1 parent 88334ad commit adcb219
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkg/ethereum/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,17 @@ func NewBeaconNode(
) (*BeaconNode, error) {
// Set default options and disable prometheus metrics.
opts := *beacon.DefaultOptions().DisablePrometheusMetrics()
opts.EnableDefaultBeaconSubscription()

opts.BeaconSubscription = beacon.BeaconSubscriptionOptions{
Enabled: true,
Topics: []string{
"block",
"head",
"finalized_checkpoint",
"blob_sidecar",
"chain_reorg",
},
}

// Configure beacon subscriptions if provided, otherwise use defaults.
if config.BeaconSubscriptions != nil {
Expand Down

0 comments on commit adcb219

Please sign in to comment.