]> Untitled Git - bdk/commit
feat(esplora): make ext traits more flexible
author志宇 <hello@evanlinjin.me>
Sun, 16 Jun 2024 07:37:11 +0000 (15:37 +0800)
committer志宇 <hello@evanlinjin.me>
Wed, 14 Aug 2024 08:16:57 +0000 (08:16 +0000)
commitcad35336269fb2f4279cba39ab077ea5b99b1e59
tree7c11408ecc420fd8a839700d33be444a340bdbe3
parent76aec62cea852344b1113228645a00413c7fcba9
feat(esplora): make ext traits more flexible

Some users would like to use esplora updates with custom `ChainOracle`s
(not `LocalChain`). We introduce "low-level" extension methods that
populate an update `TxGraph` with associated data.

Additionally, much of the logic has been made more efficient. We make
use of the `/tx/:txid` endpoint (`get_tx_info` method) to do a single
call to get both the tx and tx_status. If the tx already exists, we only
fetch the tx_status. The logic for fetching data based on outpoints has
been reworked to be more efficient and it now supports parallelism
Additionally, the logic for fetching data based on outpoints has been
reworked to be more efficient and it now supports parallelism.

Documentation has also been reworked.

Note that this is NOT a breaking change because the API of `full_scan`
and `sync` are not changed.
crates/esplora/Cargo.toml
crates/esplora/src/async_ext.rs
crates/esplora/src/blocking_ext.rs
crates/esplora/src/lib.rs