global: snapshot

This commit is contained in:
nym21
2026-03-15 11:25:21 +01:00
parent 9e36a4188a
commit 9626c7de32
54 changed files with 884 additions and 750 deletions

View File

@@ -52,9 +52,10 @@ impl Vecs {
let mut output_types_buf: Vec<OutputType> = Vec::new();
let mut values_buf: Vec<Sats> = Vec::new();
height_vec.truncate_if_needed(starting_height)?;
// Iterate blocks
for h in starting_height.to_usize()..=target_height.to_usize() {
let height = Height::from(h);
let local_idx = h - starting_height.to_usize();
// Get output range for this block
@@ -88,7 +89,7 @@ impl Vecs {
}
}
height_vec.truncate_push(height, op_return_value)?;
height_vec.push(op_return_value);
}
height_vec.write()?;