]> Untitled Git - bdk/commit
`bdk_electrum` API improvements and simplifications
author志宇 <hello@evanlinjin.me>
Thu, 18 May 2023 02:02:23 +0000 (10:02 +0800)
committer志宇 <hello@evanlinjin.me>
Sat, 3 Jun 2023 19:32:18 +0000 (03:32 +0800)
commit78a7920ba378bb57f0b61d93faf29ec813889a75
treec2e02f23715e6ab71aae1b6866e8112fdeada4a8
parent92709d03ce8ed979cda127c2c30811bb1c8c5f58
`bdk_electrum` API improvements and simplifications

* `ElectrumUpdate::missing_full_txs` now returns a `Vec<Txid>` so we
  don't keep a reference to the passed-in `graph`.

* `ElectrumUpdate::finalize*` methods now takes in `missing` txids
  instead of `full_txs`. `Client::batch_transaction_get` is called
within the methods.

Other changes:

* `wallet::ChangeSet` is now made public externally. This is required as
  a wallet db should implement `PersistBackend<wallet::ChangeSet>`.
crates/bdk/src/wallet/mod.rs
crates/electrum/src/v2.rs
example-crates/example_electrum/src/main.rs