Skip to content

Commit 58976d0

Browse files
committed
update comment
Signed-off-by: Chengxuan Xing <[email protected]>
1 parent 1dbeab6 commit 58976d0

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
@@ -54,7 +54,7 @@ func (bl *blockListener) buildConfirmationList(ctx context.Context, existingConf
5454
// Primary objective of this algorithm is to build a contiguous, linked list of `MinimalBlockInfo` structs, starting from the transaction block and ending as far as our current knowledge of the in-memory partial canonical chain allows.
5555
// Secondary objective is to report whether any fork was detected (and corrected) during this analysis
5656

57-
// before we get into the main algorithm, handle a couple of special cases to reduce complexity of the main algorithm
57+
// handle confirmation count of 0 as a special case to reduce complexity of the main algorithm
5858
if targetConfirmationCount == 0 {
5959
reconcileResult, err := bl.handleZeroTargetConfirmationCount(ctx, txBlockInfo)
6060
if reconcileResult != nil || err != nil {
@@ -76,7 +76,7 @@ func (bl *blockListener) buildConfirmationList(ctx context.Context, existingConf
7676

7777
earlyList := createEarlyList(existingConfirmations, txBlockInfo, reconcileResult)
7878

79-
// if early list is sufficient to meet the target confirmation count, we handle this as a special case
79+
// if early list is sufficient to meet the target confirmation count, we handle this as a special case as well
8080
if len(earlyList) > 0 && earlyList[len(earlyList)-1].BlockNumber.Uint64()+1 >= txBlockInfo.BlockNumber.Uint64()+targetConfirmationCount {
8181
reconcileResult := bl.handleTargetCountMetWithEarlyList(earlyList, txBlockInfo, targetConfirmationCount)
8282
if reconcileResult != nil {

0 commit comments

Comments
 (0)