|
Ran
|
Jobs
1
|
Files
28
|
Run time
1min
|
Badge
README BADGES
|
push
github
Merge bitcoindevkit/bdk#2104: fix(esplora): deduplicate missing txids in fetch_txs_with_outpoints <a class=hub.com/bitcoindevkit/bdk/commit/<a class="double-link" href="https://git"><a class=hub.com/bitcoindevkit/bdk/commit/3b6b3ba710492056677349686568f2b2f6c23ee7">3b6b3ba71 fix(esplora): deduplicate missing txids in fetch_txs_with_outpoints (phrwlk) Pull request description: ### Description Previously `fetch_txs_with_outpoints` collected spend txids into a Vec, so the same txid could be pushed multiple times when one transaction spent several input outpoints. This caused redundant `get_tx_info` calls to Esplora for the same transaction, wasting network and CPU without changing the resulting `TxUpdate`. Use `HashSet<Txid>` for `missing_txs` in both async and blocking `fetch_txs_with_outpoints,` so each txid is only requested once while keeping the observable behaviour of `SyncResponse` / `TxUpdate` unchanged. ### Changelog notice ``` ### Changed - Use `HashSet` instead of `Vec` to track `missing_txs` in bdk_esplora, it deduplicates txids. ``` ### Checklists #### All Submissions: * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) #### New Features: * [ ] I've added tests for the new feature * [ ] I've added docs for the new feature #### Bugfixes: * [ ] This pull request breaks the existing API * [ ] I've added tests to reproduce the issue which are now passing * [ ] I'm linking the issue being fixed by this PR ACKs for top commit: oleonardolima: ACK 3b6b3ba710492056677349686568f2b2f6c23ee7 luisschwab: ACK 3b6b3ba710492056677349686568f2b2f6c23ee7 Tree-SHA512: 9f1c48c85cd726e370fbb5a80cc4b4c66b9
376 of 510 branches covered (73.73%)
Branch coverage included in aggregate %.
2 of 4 new or added lines in 2 files covered. (50.0%)
4293 of 5465 relevant lines covered (78.55%)
3233.23 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
82.88 |
0.0% | crates/esplora/src/async_ext.rs |
| 1 |
79.26 |
0.0% | crates/esplora/src/blocking_ext.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 23324465008.1 | 28 |
78.14 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|