Skip to content

Commit

Permalink
feat(consensus): Don't resubscribe upstream if pre-genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jul 12, 2022
1 parent 0a10f10 commit 18c2ec9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/exporter/consensus/beacon/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func (n *node) ensureBeaconSubscription(ctx context.Context) error {
}

// Don't resubscribe if we are pre-genesis.
if n.genesis == nil {
continue
}

if !time.Now().After(n.genesis.GenesisTime) {
continue
}
Expand Down

0 comments on commit 18c2ec9

Please sign in to comment.