Skip to content

Commit

Permalink
feat: Subscribe to finalized_checkpoint events
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 7, 2023
1 parent 75cc90c commit ab53055
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/beacon/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ func NewNodesFromConfig(log logrus.FieldLogger, configs []node.Config, namespace

snode := sbeacon.NewNode(log.WithField("upstream", config.Name), sconfig, namespace, opts)

// TODO(sam.calder-mason): Can we re-enable this if we're expecting to use a full beacon node for v1?
snode.Options().BeaconSubscription.Enabled = false
snode.Options().BeaconSubscription.Enabled = true

opts.BeaconSubscription.Topics = sbeacon.EventTopics{
"finalized_checkpoint",
}

nodes[i] = &Node{
Config: config,
Expand Down

0 comments on commit ab53055

Please sign in to comment.