Struct bdk::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 scriptPubKey
s cached in crate::database::Database
with
scriptPubKey
s 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: usize
The minimum number of scripts to scan for on initial sync.
start_time: u64
Time in unix seconds in which initial sync will start scanning from (0 to start from genesis).
force_start_time: bool
Forces every sync to use start_time
as import timestamp.
poll_rate_sec: u64
RPC 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 for RpcSyncParams
impl PartialEq 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