]> Untitled Git - bdk/commit
feat(chain): `KeychainTxOutIndex`: Make spk cache optional
author志宇 <hello@evanlinjin.me>
Fri, 23 May 2025 05:44:35 +0000 (15:44 +1000)
committer志宇 <hello@evanlinjin.me>
Fri, 23 May 2025 08:36:23 +0000 (18:36 +1000)
commita0555817136e4ef5a36272cb311123e0bce54657
tree1c2547e140fb149fc091e5c97d0f2b3b400d722c
parent19e3b5df1b25d206c3b1eecefd7befc783dce127
feat(chain): `KeychainTxOutIndex`: Make spk cache optional

Also added staging changes to `ChangeSet::spk_cache`. This way, we can
avoid returning `ChangeSet`s for `apply_changeset` and
`insert_descriptor`.

* `KeychainTxOutIndex::new` now takes in an additional `use_spk_cache`
  parameter.
* Fixed `reveal_to_target` method to actually return `None` if the
  keychain does not exist.
crates/bitcoind_rpc/examples/filter_iter.rs
crates/chain/benches/canonicalization.rs
crates/chain/src/indexer/keychain_txout.rs
crates/chain/src/spk_iter.rs
crates/chain/tests/test_indexed_tx_graph.rs
crates/chain/tests/test_keychain_txout_index.rs
examples/example_cli/src/lib.rs