Skip to content

Commit

Permalink
fix err msg nit
Browse files Browse the repository at this point in the history
  • Loading branch information
alecps committed Dec 10, 2024
1 parent ab0343e commit 8c18e28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion op-chain-ops/cmd/celo-migrate/ancients.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func transformBlocks(ctx context.Context, in <-chan RLPBlockRange, out chan<- RL
blockNumber := blockRange.start + uint64(i)

if blockNumber != 0 && blockNumber != prevBlockNumber+1 {
return fmt.Errorf("Gap found between ancient blocks numbered %d and %d. Please delete the target directory and repeat the migration with an uncorrupted source directory.", prevBlockNumber, blockNumber)
return fmt.Errorf("gap found between ancient blocks numbered %d and %d. Please delete the target directory and repeat the migration with an uncorrupted source directory.", prevBlockNumber, blockNumber)
}
prevBlockNumber = blockNumber

Expand Down
2 changes: 1 addition & 1 deletion op-chain-ops/cmd/celo-migrate/non-ancients.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func migrateNonAncientsDb(newDB ethdb.Database, lastBlock, numAncients, batchSiz
log.Info("Processing Block Range", "process", "non-ancients", "from", i, "to(inclusve)", i+batchSize-1, "count", len(numbersHash))
for _, numberHash := range numbersHash {
if numberHash.Number != 0 && numberHash.Number != prevBlockNumber+1 {
return 0, fmt.Errorf("Gap found between non-ancient blocks numbered %d and %d. Please delete the target directory and repeat the migration with an uncorrupted source directory.", prevBlockNumber, numberHash.Number)
return 0, fmt.Errorf("gap found between non-ancient blocks numbered %d and %d. Please delete the target directory and repeat the migration with an uncorrupted source directory.", prevBlockNumber, numberHash.Number)
}
prevBlockNumber = numberHash.Number

Expand Down

0 comments on commit 8c18e28

Please sign in to comment.