Skip to content

Commit 6826db2

Browse files
committed
log current tail if relevant
1 parent 33ec400 commit 6826db2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sync/syncer_tail.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"context"
66
"errors"
77
"fmt"
8+
"time"
89

910
"github.com/celestiaorg/go-header"
1011
)
@@ -213,6 +214,7 @@ func (s *Syncer[H]) findTailHeight(ctx context.Context, oldTail, head H) (uint64
213214
switch {
214215
case tailTimeDiff <= 0:
215216
// current tail is relevant as is
217+
log.Debugw("relevant old tail", "expected_tail_time", expectedTailTime.Format(time.DateTime), "current_tail_time", currentTailTime.Format(time.DateTime))
216218
return oldTail.Height(), nil
217219
case tailTimeDiff >= window:
218220
// current and expected tails are far from each other

0 commit comments

Comments
 (0)