]> Untitled Git - bdk/commit
refactor(chain)!: revamp `KeychainTxOutIndex` API
author志宇 <hello@evanlinjin.me>
Sat, 13 Jan 2024 12:04:49 +0000 (20:04 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 17 Jan 2024 03:17:25 +0000 (11:17 +0800)
commitc7b47af72f278ba73abea58db49cff1245428f97
treed27316baed5db8fe969187f63749486c4de32b8b
parent705690ee8fddba8517d907183b7ddfeafb633609
refactor(chain)!: revamp `KeychainTxOutIndex` API

Previously `SpkTxOutIndex` methods can be called from
`KeychainTxOutIndex` due to the `DeRef` implementation. However, the
internal `SpkTxOut` will also contain lookahead spks resulting in an
error-prone API.

`SpkTxOutIndex` methods are now not directly callable from
`KeychainTxOutIndex`. Methods of `KeychainTxOutIndex` are renamed for
clarity. I.e. methods that return an unbounded spk iter are prefixed
with `unbounded`.
crates/bdk/src/wallet/mod.rs
crates/chain/src/keychain/txout_index.rs
crates/chain/tests/test_keychain_txout_index.rs
crates/electrum/src/electrum_ext.rs
example-crates/example_cli/src/lib.rs
example-crates/example_electrum/src/main.rs
example-crates/example_esplora/src/main.rs
example-crates/wallet_electrum/src/main.rs
example-crates/wallet_esplora_async/src/main.rs
example-crates/wallet_esplora_blocking/src/main.rs