introduced rewarding resync alongside recovery instructions

This commit is contained in:
Jędrzej Stuczyński
2024-09-27 16:36:28 +01:00
parent d399161d31
commit 76c3081470
2 changed files with 77 additions and 1 deletions
+11 -1
View File
@@ -208,7 +208,17 @@ impl NyxdScraper {
}
};
let end_height = end_height.unwrap_or(current_height);
let end_height = match end_height {
Some(explicit) => explicit,
None => {
let last_processed = block_processor.last_process_height();
if last_processed != 0 {
last_processed - 1
} else {
current_height
}
}
};
info!(
starting_height = starting_height,