Skip to content

Commit

Permalink
fix check-blocks starting at block 0 (#115)
Browse files Browse the repository at this point in the history
* fix check-blocks starting at block 0

* remove log
  • Loading branch information
fschoell authored Jan 2, 2024
1 parent e6c7d5a commit 4309f0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/fireantelope/tools_fix_invalid_utf8.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ func createCheckBlocksE(logger *zap.Logger) firecore.CommandExecutor {
i++
}

if i != 100 {
// We expect 100 blocks per merged block, unless it's the first merged block, then we only expect 98 as
// Antelope chains start at block 2.
if i != 100 && !(startBlock == 0 && i == 98) {
return fmt.Errorf("expected to have read 100 blocks, we have read %d. Bailing out.", i)
}

Expand Down

0 comments on commit 4309f0d

Please sign in to comment.