Struct bdk_debug::blockchain::rpc::RpcSyncParams
source · pub struct RpcSyncParams {
pub start_script_count: usize,
pub start_time: u64,
pub force_start_time: bool,
pub poll_rate_sec: u64,
}Available on crate feature
rpc only.Expand description
Sync parameters for Bitcoin Core RPC.
In general, BDK tries to sync scriptPubKeys cached in crate::database::Database with
scriptPubKeys imported in the Bitcoin Core Wallet. These parameters are used for determining
how the importdescriptors RPC calls are to be made.
Fields§
§start_script_count: usizeThe minimum number of scripts to scan for on initial sync.
start_time: u64Time in unix seconds in which initial sync will start scanning from (0 to start from genesis).
force_start_time: boolForces every sync to use start_time as import timestamp.
poll_rate_sec: u64RPC poll rate (in seconds) to get state updates.
Trait Implementations§
source§impl Clone for RpcSyncParams
impl Clone for RpcSyncParams
source§fn clone(&self) -> RpcSyncParams
fn clone(&self) -> RpcSyncParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RpcSyncParams
impl Debug for RpcSyncParams
source§impl Default for RpcSyncParams
impl Default for RpcSyncParams
source§impl<'de> Deserialize<'de> for RpcSyncParams
impl<'de> Deserialize<'de> for RpcSyncParams
source§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
source§impl PartialEq<RpcSyncParams> for RpcSyncParams
impl PartialEq<RpcSyncParams> for RpcSyncParams
source§fn eq(&self, other: &RpcSyncParams) -> bool
fn eq(&self, other: &RpcSyncParams) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RpcSyncParams
impl Serialize for RpcSyncParams
impl Eq for RpcSyncParams
impl StructuralEq for RpcSyncParams
impl StructuralPartialEq for RpcSyncParams
Auto Trait Implementations§
impl RefUnwindSafe for RpcSyncParams
impl Send for RpcSyncParams
impl Sync for RpcSyncParams
impl Unpin for RpcSyncParams
impl UnwindSafe for RpcSyncParams
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more