pub struct BlockDecoder { /* private fields */ }
Expand description
Push decoder for bitcoin blocks.
IMPORTANT: you must call finish()
after the last byte of the block has been supplied,
in order to complete the block validation and ensure that there is no trailing data.
The decoder uses a limited amount of memory by streaming parse results to a listener.
Scripts beyond max_script_size
are replaced with the empty script (saves
10 KB of peak memory usage).
The computed transactionm IDs cover the original script.
Implementations§
Source§impl BlockDecoder
impl BlockDecoder
Auto Trait Implementations§
impl Freeze for BlockDecoder
impl RefUnwindSafe for BlockDecoder
impl Send for BlockDecoder
impl Sync for BlockDecoder
impl Unpin for BlockDecoder
impl UnwindSafe for BlockDecoder
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