Skip to content

Commit 640a37d

Browse files
committed
rename function
Signed-off-by: John Hosie <[email protected]>
1 parent de86f20 commit 640a37d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/ethereum/confirmation_reconciler.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,14 @@ func (bl *blockListener) buildConfirmationList(ctx context.Context, existingConf
113113
}
114114
}
115115

116-
if confirmations := splicedList.link(); confirmations != nil {
116+
confirmations := splicedList.toSingleLinkedList()
117+
if confirmations != nil {
117118
// we have a contiguous list that starts with the transaction block and ends with the last block in the canonical chain
118119
// so we can return the result
119120
reconcileResult.Confirmations = confirmations
120121
break
121122
}
123+
122124
// we filled all gaps and still cannot link the 2 lists, must be a fork. Create a gap of one and try again
123125
reconcileResult.NewFork = true
124126
splicedList.removeBrokenLink()
@@ -224,7 +226,7 @@ func (s *splice) removeBrokenLink() {
224226

225227
}
226228

227-
func (s *splice) link() []*ffcapi.MinimalBlockInfo {
229+
func (s *splice) toSingleLinkedList() []*ffcapi.MinimalBlockInfo {
228230
if s.hasGap() {
229231
return nil
230232
}

0 commit comments

Comments
 (0)