]> Untitled Git - bdk/commit
feat(chain)!: use custom return types for `ElectrumExt` methods
author志宇 <hello@evanlinjin.me>
Tue, 7 May 2024 04:43:02 +0000 (12:43 +0800)
committer志宇 <hello@evanlinjin.me>
Fri, 10 May 2024 06:54:29 +0000 (14:54 +0800)
commitc0d7d60a582b939324bb48ec8c5035020ec90699
treeb21a83f2d09d7afac96108c37af5b1e5055097cd
parent2945c6be88b3bf5105afeb8addff4861f0458b41
feat(chain)!: use custom return types for `ElectrumExt` methods

This is more code, but a much more elegant solution than having
`ElectrumExt` methods return `SyncResult`/`FullScanResult` and having an
`ElectrumResultExt` extention trait.
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