-
- All Implemented Interfaces:
public final class RcpSyncParams
Sync parameters for Bitcoin Core RPC.
In general, BDK tries to sync
scriptPubKey
s cached inDatabase
withscriptPubKey
s imported in the Bitcoin Core Wallet. These parameters are used for determining how theimportdescriptors
RPC calls are to be made.
-
-
Field Summary
Fields Modifier and Type Field Description private final ULong
startScriptCount
private final <Error class: unknown class>
startTime
private final Boolean
forceStartTime
private final ULong
pollRateSec
-
Constructor Summary
Constructors Constructor Description RcpSyncParams(ULong startScriptCount, <Error class: unknown class> startTime, Boolean forceStartTime, ULong pollRateSec)
-
Method Summary
Modifier and Type Method Description final ULong
getStartScriptCount()
The minimum number of scripts to scan for on initial sync. final <Error class: unknown class>
getStartTime()
Time in unix seconds in which initial sync will start scanning from (0 to start from genesis). final Boolean
getForceStartTime()
Forces every sync to use start_time
as import timestamp.final ULong
getPollRateSec()
RPC poll rate (in seconds) to get state updates. -
-
Method Detail
-
getStartScriptCount
final ULong getStartScriptCount()
The minimum number of scripts to scan for on initial sync.
-
getStartTime
final <Error class: unknown class> getStartTime()
Time in unix seconds in which initial sync will start scanning from (0 to start from genesis).
-
getForceStartTime
final Boolean getForceStartTime()
Forces every sync to use
start_time
as import timestamp.
-
getPollRateSec
final ULong getPollRateSec()
RPC poll rate (in seconds) to get state updates.
-
-
-
-