Skip to content

Commit

Permalink
Merge pull request #6 from ethpandaops/feat/subscription-topics
Browse files Browse the repository at this point in the history
feat(beacon): Swap default event stream subscriptions
  • Loading branch information
samcm authored Jan 13, 2025
2 parents 88334ad + adcb219 commit 326a445
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 326a445

Please sign in to comment.