Skip to content

Commit

Permalink
feat: Add logging for derived finalized epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Oct 15, 2024
1 parent 392eddb commit afd3390
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cannon-smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
- name: Create Xatu Cannon config
run: |
cat <<EOF > /tmp/cannon_config.yaml
logging: debug
name: cannon-smoke-test
labels:
ethpandaops: rocks
Expand Down
4 changes: 4 additions & 0 deletions pkg/cannon/iterator/backfilling_checkpoint_iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ func (c *BackfillingCheckpoint) Next(ctx context.Context) (rsp *BackFillingCheck
if marker.FinalizedEpoch < uint64(checkpoint.Epoch) {
next := phase0.Epoch(marker.FinalizedEpoch + 1)

c.log.WithFields(logrus.Fields{
"next_epoch": next,
}).Info("Derived next finalized epoch to process")

return &BackFillingCheckpointNextResponse{
Next: next,
LookAheads: c.calculateFinalizedLookAheads(next, checkpoint.Epoch),
Expand Down

0 comments on commit afd3390

Please sign in to comment.