]> Untitled Git - bdk/commit
feat(esplora): always fetch prevouts
author志宇 <hello@evanlinjin.me>
Tue, 2 Jul 2024 03:53:54 +0000 (03:53 +0000)
committer志宇 <hello@evanlinjin.me>
Wed, 14 Aug 2024 08:16:57 +0000 (08:16 +0000)
commitc93e6fd3e6289f2c7bc12012eae7231d03cb04cb
tree4e51ba443a38112e2f4d85bca814d306f2f53529
parentcad35336269fb2f4279cba39ab077ea5b99b1e59
feat(esplora): always fetch prevouts

Prevouts are needed to calculate fees for transactions. They are
introduced as floating txouts in the update `TxGraph`. A helper method
`insert_prevouts` is added to insert the floating txouts using the
`Vin`s returned from Esplora.

Also replaced `anchor_from_status` with `insert_anchor_from_status` as
we always insert the anchor into the update `TxGraph` after getting it.

Also removed `bitcoin` dependency as `bdk_chain` already depends on
`bitcoin` (and it's re-exported).
crates/esplora/Cargo.toml
crates/esplora/src/async_ext.rs
crates/esplora/src/blocking_ext.rs
crates/esplora/src/lib.rs