mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 02:49:55 +00:00
fix typo
This commit is contained in:
@ -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(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user