Skip to content

Commit 3fcdce6

Browse files
method rename
1 parent be72ea3 commit 3fcdce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chains/heads/tracker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Tracker[H chains.Head[BLOCK_HASH], BLOCK_HASH chains.Hashable] interface {
4949
type ChainConfig interface {
5050
BlockEmissionIdleWarningThreshold() time.Duration
5151
FinalityDepth() uint32
52-
SafeBlockDepth() uint32
52+
SafeDepth() uint32
5353
FinalityTagEnabled() bool
5454
FinalizedBlockOffset() uint32
5555
}
@@ -424,7 +424,7 @@ func (t *tracker[HTH, S, ID, BHASH]) LatestSafeBlock(ctx context.Context) (safe
424424
if t.instantFinality() {
425425
return latest, nil
426426
}
427-
safeDepth := int64(t.config.SafeBlockDepth())
427+
safeDepth := int64(t.config.SafeDepth())
428428
if safeDepth <= 0 {
429429
safeDepth = int64(t.config.FinalityDepth())
430430
}

0 commit comments

Comments
 (0)