Skip to content

Commit ce65daf

Browse files
committed
rename
Signed-off-by: Chengxuan Xing <[email protected]>
1 parent 95ebe62 commit ce65daf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethereum/confirmation_reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func (bl *blockListener) handleZeroTargetConfirmationCount(ctx context.Context,
360360
return nil, i18n.NewError(ctx, msgs.MsgInMemoryPartialChainNotCaughtUp, txBlockInfo.BlockNumber.Uint64(), txBlockInfo.BlockHash)
361361
}
362362

363-
func (bl *blockListener) handleTargetConfirmationCountLessThanExistingConfirmationsWithOverlap(ctx context.Context, existingConfirmations []*ffcapi.MinimalBlockInfo, txBlockInfo *ffcapi.MinimalBlockInfo, targetConfirmationCount uint64) (*ffcapi.ConfirmationUpdateResult, error) {
363+
func (bl *blockListener) handleTargetCountLessThanExistingConfirmationLength(ctx context.Context, existingConfirmations []*ffcapi.MinimalBlockInfo, txBlockInfo *ffcapi.MinimalBlockInfo, targetConfirmationCount uint64) (*ffcapi.ConfirmationUpdateResult, error) {
364364
bl.mux.RLock()
365365
defer bl.mux.RUnlock()
366366
nextInMemoryBlock := bl.canonicalChain.Front()
@@ -409,7 +409,7 @@ func (bl *blockListener) handleSpecialCases(ctx context.Context, existingConfirm
409409
}
410410

411411
if len(existingConfirmations) > 0 && existingConfirmations[len(existingConfirmations)-1].BlockNumber.Uint64()+1 >= txBlockInfo.BlockNumber.Uint64()+targetConfirmationCount {
412-
return bl.handleTargetConfirmationCountLessThanExistingConfirmationsWithOverlap(ctx, existingConfirmations, txBlockInfo, targetConfirmationCount)
412+
return bl.handleTargetCountLessThanExistingConfirmationLength(ctx, existingConfirmations, txBlockInfo, targetConfirmationCount)
413413
}
414414
return nil, nil
415415
}

0 commit comments

Comments
 (0)