[−][src]Struct bdk::blockchain::compact_filters::CompactFiltersBlockchain
This is supported on
feature="compact_filters"
only.Structure implementing the required blockchain traits
Example
See the blockchain::compact_filters
module for a usage example.
Implementations
impl CompactFiltersBlockchain
[src][−]
pub fn new<P: AsRef<Path>>(
peers: Vec<Peer>,
storage_dir: P,
skip_blocks: Option<usize>
) -> Result<Self, CompactFiltersError>
[src][−]
peers: Vec<Peer>,
storage_dir: P,
skip_blocks: Option<usize>
) -> Result<Self, CompactFiltersError>
This is supported on
feature="compact_filters"
only.Construct a new instance given a list of peers, a path to store headers and block filters downloaded during the sync and optionally a number of blocks to ignore starting from the genesis while scanning for the wallet's outputs.
For each Peer
specified a new thread will be spawned to download and verify the filters
in parallel. It's currently recommended to only connect to a single peer to avoid
inconsistencies in the data returned, optionally with multiple connections in parallel to
speed-up the sync process.
Trait Implementations
impl Blockchain for CompactFiltersBlockchain
[src][+]
impl Debug for CompactFiltersBlockchain
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for CompactFiltersBlockchain
impl Send for CompactFiltersBlockchain
impl Sync for CompactFiltersBlockchain
impl Unpin for CompactFiltersBlockchain
impl !UnwindSafe for CompactFiltersBlockchain
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> BlockchainMarker for T where
T: Blockchain,
[src]
T: Blockchain,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,