Struct bdk::blockchain::compact_filters::CompactFiltersBlockchain [−][src]
pub struct CompactFiltersBlockchain { /* fields omitted */ }
compact_filters
only.Expand description
Structure implementing the required blockchain traits
Example
See the blockchain::compact_filters
module for a usage example.
Implementations
impl CompactFiltersBlockchain
[src]
impl CompactFiltersBlockchain
[src]pub fn new<P: AsRef<Path>>(
peers: Vec<Peer>,
storage_dir: P,
skip_blocks: Option<usize>
) -> Result<Self, CompactFiltersError>
[src]
pub fn new<P: AsRef<Path>>(
peers: Vec<Peer>,
storage_dir: P,
skip_blocks: Option<usize>
) -> Result<Self, CompactFiltersError>
[src]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 Blockchain for CompactFiltersBlockchain
[src]fn get_capabilities(&self) -> HashSet<Capability>
[src]
fn get_capabilities(&self) -> HashSet<Capability>
[src]Return the set of Capability
supported by this backend
fn setup<D: BatchDatabase, P: 'static + Progress>(
&self,
_stop_gap: Option<usize>,
database: &mut D,
progress_update: P
) -> Result<(), Error>
[src]
fn setup<D: BatchDatabase, P: 'static + Progress>(
&self,
_stop_gap: Option<usize>,
database: &mut D,
progress_update: P
) -> Result<(), Error>
[src]Setup the backend and populate the internal database for the first time Read more
fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error>
[src]
fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error>
[src]Fetch a transaction from the blockchain given its txid
fn get_height(&self) -> Result<u32, Error>
[src]
fn get_height(&self) -> Result<u32, Error>
[src]Return the current height
impl ConfigurableBlockchain for CompactFiltersBlockchain
[src]
impl ConfigurableBlockchain for CompactFiltersBlockchain
[src]type Config = CompactFiltersBlockchainConfig
type Config = CompactFiltersBlockchainConfig
Type that contains the configuration
fn from_config(config: &Self::Config) -> Result<Self, Error>
[src]
fn from_config(config: &Self::Config) -> Result<Self, Error>
[src]Create a new instance given a configuration
impl Debug for CompactFiltersBlockchain
[src]
impl Debug for CompactFiltersBlockchain
[src]impl From<CompactFiltersBlockchain> for AnyBlockchain
[src]
impl From<CompactFiltersBlockchain> for AnyBlockchain
[src]fn from(inner: CompactFiltersBlockchain) -> Self
[src]
fn from(inner: CompactFiltersBlockchain) -> Self
[src]Performs the conversion.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,