Skip to content

Commit

Permalink
feat: add comments
Browse files Browse the repository at this point in the history
georgehao committed Dec 14, 2023

Unverified

This user has not yet uploaded their public signing key.
1 parent 99cd99d commit 3bb20fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bridge-history-api/internal/utils/utils.go
Original file line number Diff line number Diff line change
@@ -180,6 +180,7 @@ func GetL2BlocksInRange(ctx context.Context, cli *ethclient.Client, start, end u
return blocks, nil
}

// ConvertBigIntArrayToString convert the big int array to string
func ConvertBigIntArrayToString(array []*big.Int) string {
stringArray := make([]string, len(array))
for i, num := range array {
@@ -190,6 +191,7 @@ func ConvertBigIntArrayToString(array []*big.Int) string {
return result
}

// GetSkippedQueueIndices get the skipped queue indices
func GetSkippedQueueIndices(startIndex uint64, skippedBitmap *big.Int) []uint64 {
var indices []uint64
for i := 0; i < 256; i++ {

0 comments on commit 3bb20fb

Please sign in to comment.