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
+2 -2
View File
@@ -12,9 +12,9 @@ fn main() -> Result<()> {
let reader = Reader::new(bitcoin_dir.join("blocks"), &client);
// Stream all blocks
// Stream all blocks from genesis to the current tip.
let i = std::time::Instant::now();
for block in reader.read(None, None) {
for block in reader.after(None)?.iter() {
println!("{}: {}", block.height(), block.hash());
}
println!("Full read: {:?}", i.elapsed());