reader: snap

This commit is contained in:
nym21
2026-04-14 01:37:04 +02:00
parent 283baca848
commit 4cd8d9eb56
17 changed files with 927 additions and 1144 deletions

View File

@@ -19,7 +19,7 @@ fn main() -> Result<()> {
let height = Height::new(h);
let i = std::time::Instant::now();
if let Some(block) = reader.read(Some(height), Some(height)).iter().next() {
if let Some(block) = reader.range(height, height)?.iter().next() {
println!(
"height={} hash={} txs={} coinbase=\"{:?}\" ({:?})",
block.height(),