]> Untitled Git - bdk/commit
feat(wallet): make wallet compatible with sync/full-scan structures
author志宇 <hello@evanlinjin.me>
Wed, 24 Apr 2024 08:54:03 +0000 (16:54 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 26 Apr 2024 04:55:48 +0000 (12:55 +0800)
commit4c52f3e08e85e73db379ee3411cceb8dbcec92e1
tree92326573575947588537c0ac7fd0031e403cb34e
parentcdfec5f90726f2313963c3a71e5d18bb10624736
feat(wallet): make wallet compatible with sync/full-scan structures

* Changed `Wallet::apply_update` to also take in anything that
  implements `Into<Update>`. This allows us to directly apply a
  `FullScanResult` or `SyncResult`.
* Added `start_full_scan` and `start_sync_with_revealed_spks` methods to
  `Wallet`.

Co-authored-by: Steve Myers <steve@notmandatory.org>
crates/bdk/src/wallet/mod.rs