global: snapshot

This commit is contained in:
nym21
2026-03-10 18:46:24 +01:00
parent d50c6e0a73
commit f9c86bc308
14 changed files with 229 additions and 207 deletions

View File

@@ -20,11 +20,7 @@ impl Query {
return Err(Error::OutOfRange("Block height out of range".into()));
}
let position = computer
.positions
.block_position
.collect_one(height)
.unwrap();
let position = computer.positions.block.collect_one(height).unwrap();
let size = indexer.vecs.blocks.total_size.collect_one(height).unwrap();
reader.read_raw_bytes(position, *size as usize)