]> Untitled Git - bdk/commit
New `RpcBlockchain` implementation with various fixes
author志宇 <hello@evanlinjin.me>
Fri, 22 Jul 2022 23:44:39 +0000 (07:44 +0800)
committer志宇 <hello@evanlinjin.me>
Thu, 4 Aug 2022 03:27:37 +0000 (11:27 +0800)
commitac19c19f21fce43a99ecf0c4f95ae818b620558c
treea76903655ff40c07975bd9e8ee84788cd58201c9
parentef03da0a7671a040b8c7f0a343dac63e4363aa7a
New `RpcBlockchain` implementation with various fixes

The new implementation fixes the following:
* We can track more than 100 scriptPubKeys
* We can obtain more than 1000 transactions per sync
* `TransactionDetails` for already-synced transactions are updated when
  new scriptPubKeys are introduced (fixing the missing balance/coins
      issue of supposedly tracked scriptPubKeys)

`RpcConfig` changes:
* Introduce `RpcSyncParams`.
* Remove `RpcConfig::skip_blocks` (this is replaced by
  `RpcSyncParams::start_time`).
CHANGELOG.md
examples/rpcwallet.rs
src/blockchain/rpc.rs
src/testutils/blockchain_tests.rs