global: fixes

This commit is contained in:
nym21
2026-03-23 14:17:07 +01:00
parent d6def7643d
commit c53c6560fa
11 changed files with 38 additions and 39 deletions
+4 -1
View File
@@ -3,7 +3,7 @@
use std::{
fs,
thread::{self, sleep},
time::Duration,
time::{Duration, Instant},
};
use brk_alloc::Mimalloc;
@@ -99,6 +99,8 @@ pub fn main() -> anyhow::Result<()> {
info!("{} blocks found.", u32::from(last_height) + 1);
let total_start = Instant::now();
let starting_indexes = if cfg!(debug_assertions) {
indexer.checked_index(&blocks, &client, &exit)?
} else {
@@ -109,6 +111,7 @@ pub fn main() -> anyhow::Result<()> {
computer.compute(&indexer, starting_indexes, &reader, &exit)?;
info!("Total time: {:?}", total_start.elapsed());
info!("Waiting for new blocks...");
while last_height == client.get_last_height()? {