Struct bdk::blockchain::compact_filters::CompactFiltersBlockchainConfig [−][src]
pub struct CompactFiltersBlockchainConfig {
pub peers: Vec<BitcoinPeerConfig>,
pub network: Network,
pub storage_dir: String,
pub skip_blocks: Option<usize>,
}
This is supported on crate feature
compact_filters
only.Expand description
Configuration for a CompactFiltersBlockchain
Fields
peers: Vec<BitcoinPeerConfig>
List of peers to try to connect to for asking headers and filters
network: Network
Network used
storage_dir: String
Storage dir to save partially downloaded headers and full blocks. Should be a separate directory per descriptor. Consider using crate::wallet::wallet_name_from_descriptor for this.
skip_blocks: Option<usize>
Optionally skip initial skip_blocks
blocks (default: 0)
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for CompactFiltersBlockchainConfig
impl Sync for CompactFiltersBlockchainConfig
impl Unpin for CompactFiltersBlockchainConfig
impl UnwindSafe for CompactFiltersBlockchainConfig
Blanket Implementations
Mutably borrows from an owned value. Read more