mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-12 03:28:13 -07:00
global: snapshot
This commit is contained in:
@@ -15,6 +15,7 @@ fn main() -> Result<()> {
|
||||
// Stream all blocks from genesis to the current tip.
|
||||
let i = std::time::Instant::now();
|
||||
for block in reader.after(None)?.iter() {
|
||||
let block = block?;
|
||||
println!("{}: {}", block.height(), block.hash());
|
||||
}
|
||||
println!("Full read: {:?}", i.elapsed());
|
||||
|
||||
Reference in New Issue
Block a user