From: Daniela Brozzoni Date: Mon, 5 Feb 2024 11:44:43 +0000 (+0100) Subject: Merge bitcoindevkit/bdk#1308: feat(esplora): include previous `TxOut`s for fee calcul... X-Git-Tag: v1.0.0-alpha.6~3 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CodeLengthError.html?a=commitdiff_plain;h=7aca88474ac241bc0938ff989026463bdaf8f3ab;p=bdk Merge bitcoindevkit/bdk#1308: feat(esplora): include previous `TxOut`s for fee calculation 552f11cb5f66a9366dbc05c801fcae043ebe5b82 feat(esplora): include previous `TxOut`s for fee calculation The previous `TxOut` for transactions received from an external wallet are added as floating `TxOut`s to `TxGraph` to allow for fee calculation. (Wei Chen) Pull request description: ### Description Partially implements #1265. The previous `TxOut` for transactions received from an external wallet are added as floating `TxOut`s to `TxGraph` to allow for fee calculation. ### Notes to the reviewers Currently only the `esplora` portion of #1265 has been implemented. The `electrum` portion will potentially be done in a new PR, as discussed on the 1/30/24 Lib call. ### Checklists #### To Do: * [ ] Implement `electrum` portion of #1265. #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) * [x] I ran `cargo fmt` and `cargo clippy` before committing #### New Features: * [x] I've added tests for the new feature * [x] I've added docs for the new feature ACKs for top commit: evanlinjin: re-ACK 552f11cb5f66a9366dbc05c801fcae043ebe5b82 danielabrozzoni: ACK 552f11cb5f66a9366dbc05c801fcae043ebe5b82 Tree-SHA512: 752a24ebd0b9ad7952c1b093ecb251473e346c77b860c1a80c73418130189227405a0f0d7652967cf8c7b89994e8c37df96cd52b52b6daff9cc8c88b5194069a --- 7aca88474ac241bc0938ff989026463bdaf8f3ab