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,
}
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
sourceimpl Clone for RpcSyncParams
impl Clone for RpcSyncParams
sourcefn clone(&self) -> RpcSyncParams
fn clone(&self) -> RpcSyncParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RpcSyncParams
impl Debug for RpcSyncParams
sourceimpl Default for RpcSyncParams
impl Default for RpcSyncParams
sourceimpl<'de> Deserialize<'de> for RpcSyncParams
impl<'de> Deserialize<'de> for RpcSyncParams
sourcefn 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
sourceimpl PartialEq<RpcSyncParams> for RpcSyncParams
impl PartialEq<RpcSyncParams> for RpcSyncParams
sourcefn 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 ==
. Read more
sourceimpl Serialize for RpcSyncParams
impl Serialize 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more