Crate blocks_iterator[−][src]
Expand description
Blocks Iterator
Read bitcoin blocks directory containing blocks*.dat
files, and produce a ordered stream
of BlockExtra
Re-exports
Structs
The bitcoin block and additional metadata returned by the iterate method
Configuration parameters, most important the bitcoin blocks directory
Functions
Read blocks*.dat
contained in the config.blocks_dir
directory and returns BlockExtra
through a channel supplied from the caller. Blocks returned are ordered from the genesis to the
highest block in the dircetory (minus config.max_reorg
).
In this call threads are spawned, caller must call std::thread::JoinHandle::join on the returning handle.
Utility method usually returning log::Level::Debug but when i
is divisible by 10_000
returns log::Level::Info