pub struct HeaderParser;Expand description
You can specify the blocks directory when
running bitcoind.
Fast multithreaded parser of ParsedHeader from the blocks directory
Implementations§
Source§impl HeaderParser
impl HeaderParser
Sourcepub fn parse(blocks_dir: &str) -> Result<Vec<ParsedHeader>>
pub fn parse(blocks_dir: &str) -> Result<Vec<ParsedHeader>>
Parses the headers from the bitcoin blocks directory returning ParsedHeader in height order,
starting from the genesis block.
- Returns an
Errif the directory contains invalid.blkfiles. - Takes a few seconds to run.
Auto Trait Implementations§
impl Freeze for HeaderParser
impl RefUnwindSafe for HeaderParser
impl Send for HeaderParser
impl Sync for HeaderParser
impl Unpin for HeaderParser
impl UnwindSafe for HeaderParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more