This commit is contained in:
sprites0
2025-07-30 04:37:49 +00:00
parent a47674ac30
commit a2e978dc0c

View File

@ -215,11 +215,7 @@ impl HlNodeBlockSource {
.collect(); .collect();
subfiles.sort(); subfiles.sort();
for (file_name_num, subfile) in subfiles { for (_, subfile) in subfiles {
if file_name_num < next_height {
continue;
}
// Fast path: check the last line of the file // Fast path: check the last line of the file
let last_line = read_last_line(&subfile); let last_line = read_last_line(&subfile);
if let Ok((_, height)) = line_to_evm_block(&last_line) { if let Ok((_, height)) = line_to_evm_block(&last_line) {
@ -239,6 +235,7 @@ impl HlNodeBlockSource {
next_height = next_expected_height; next_height = next_expected_height;
} }
} }
info!("Backfilled {} blocks", u_cache.len());
Ok(()) Ok(())
} }