Skip to content

Commit e5d1bd6

Browse files
authored
fix(l1): show proper exported number of blocks (#5448)
**Motivation** The range blocks showed on the export of blocks on ethrex is inclusive of first and last block, but the number reported is (end - start). This pr aims to rectify this. **Description** - This PR adds a 1 to the reported number to make it accurate.
1 parent b67d7b2 commit e5d1bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/ethrex/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,5 +842,5 @@ pub async fn export_blocks(
842842
file.write_all(&buffer).expect("Failed to write to file");
843843
buffer.clear();
844844
}
845-
info!(blocks = end.saturating_sub(start), path = %path, "Exported blocks to file");
845+
info!(blocks = end.saturating_sub(start) + 1, path = %path, "Exported blocks to file");
846846
}

0 commit comments

Comments
 (0)