Skip to content

Commit

Permalink
Fixed incomplete range reported because of wrong exclusive boundary c…
Browse files Browse the repository at this point in the history
…hecking
  • Loading branch information
maoueh committed Jan 16, 2023
1 parent 4e173e8 commit b84f19a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func CheckMergedBlocks(
)

if blockRange.Bounded() &&
(highestBlockSeen < blockRange.Stop ||
(highestBlockSeen < (blockRange.Stop-1) ||
(lowestBlockSeen > blockRange.Start && lowestBlockSeen > bstream.GetProtocolFirstStreamableBlock)) {
fmt.Printf("🔶 Incomplete range %s, started at block %s and stopped at block: %s\n", blockRange, PrettyBlockNum(lowestBlockSeen), PrettyBlockNum(highestBlockSeen))
}
Expand Down

0 comments on commit b84f19a

Please sign in to comment.