Skip to content

Commit a8e8058

Browse files
committed
Redo/fix RpcBlockchain implementation
The new implementation fixes the following: * We can track more than 100 scriptPubKeys * We can obtain more than 1000 transactions per sync * `stop_gap` is enforced to ensure no missing balances `RpcConfig` changes: * Introduce `RpcSyncParams`. * Remove `RpcConfig::skip_blocks` (this is replaced by `RpcSyncParams::start_time`).
1 parent 6bae52e commit a8e8058

File tree

3 files changed

+539
-250
lines changed

3 files changed

+539
-250
lines changed

examples/rpcwallet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn main() -> Result<(), Box<dyn Error>> {
103103
auth: bitcoind_auth,
104104
network: Network::Regtest,
105105
wallet_name,
106-
skip_blocks: None,
106+
sync_params: None,
107107
};
108108

109109
// Use the above configuration to create a RPC blockchain backend

0 commit comments

Comments
 (0)