Function blocks_iterator::iterate[][src]

pub fn iterate(
    config: Config,
    channel: SyncSender<Option<BlockExtra>>
) -> JoinHandle<()>

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.