Struct bitcoin_block_parser::BlockParser
source · pub struct BlockParser { /* private fields */ }
Expand description
Contains all the block parsing functions
Implementations§
source§impl BlockParser
impl BlockParser
sourcepub fn new(locations: &[BlockLocation]) -> Self
pub fn new(locations: &[BlockLocation]) -> Self
Create a new parser, allowing users to select a range or re-order blocks
sourcepub fn parse(&self) -> Receiver<Result<ParsedBlock>>
pub fn parse(&self) -> Receiver<Result<ParsedBlock>>
Parses all the blocks without providing any of the input/output metadata
sourcepub fn parse_i(&self) -> Receiver<Result<ParsedBlock>>
pub fn parse_i(&self) -> Receiver<Result<ParsedBlock>>
Parses the blocks and tracks the input amounts
sourcepub fn parse_o(&self, filter_file: &str) -> Receiver<Result<ParsedBlock>>
pub fn parse_o(&self, filter_file: &str) -> Receiver<Result<ParsedBlock>>
Parses the blocks and tracks if outputs are spent/unspent
sourcepub fn parse_io(&self, filter_file: &str) -> Receiver<Result<ParsedBlock>>
pub fn parse_io(&self, filter_file: &str) -> Receiver<Result<ParsedBlock>>
Parses the blocks and tracks the input amounts and if outputs are spent/unspent
sourcepub fn write_filter(&self, output: &str) -> Result<()>
pub fn write_filter(&self, output: &str) -> Result<()>
Writes a filter that contains all unspent OutPoint
We use ScalableCuckooFilter
which is a probabilistic set membership data structure
similar to a bloom filter except it supports removes which makes creation faster/easier.
Auto Trait Implementations§
impl Freeze for BlockParser
impl RefUnwindSafe for BlockParser
impl Send for BlockParser
impl Sync for BlockParser
impl Unpin for BlockParser
impl UnwindSafe for BlockParser
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