]> Untitled Git - bdk/commit
feat(electrum)!: use new sync/full-scan structs for `ElectrumExt`
author志宇 <hello@evanlinjin.me>
Tue, 30 Apr 2024 06:50:21 +0000 (14:50 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 10 May 2024 06:54:28 +0000 (14:54 +0800)
commita6fdfb2ae4caa1cdd23aa5e5ffaf02716473a98e
tree41183de6ba6665362f757cf0ea207a8c25ecdf07
parent653e4fed6d16698bc5859c1e4afdcee7b3d83dad
feat(electrum)!: use new sync/full-scan structs for `ElectrumExt`

`ElectrumResultExt` trait is also introduced that adds methods which can
convert the `Anchor` type for the update `TxGraph`.

We also make use of the new `TxCache` fields in
`SyncRequest`/`FullScanRequest`. This way, we can avoid re-fetching full
transactions from Electrum if not needed.

Examples and tests are updated to use the new `ElectrumExt` API.
crates/electrum/Cargo.toml
crates/electrum/src/electrum_ext.rs
crates/electrum/tests/test_electrum.rs
example-crates/example_electrum/src/main.rs
example-crates/wallet_electrum/src/main.rs