• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bitcoindevkit / bdk / 16859984937
79%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2025 09:54AM UTC
Jobs 1
Files 27
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2025 09:45AM UTC coverage: 79.136% (+0.2%) from 78.894%
16859984937

push

github

evanlinjin
Merge bitcoindevkit/bdk#2008: `IndexedTxGraph`: Transactions that conflict with relevant txs are also relevant.

7ca58b3f6 chore(chain): fix typo in method doc comment (Wei Chen)
c846ad84d test(chain): `relevant_conflicts` (志宇)
7003ad44b feat(chain): Txs that conflict with relevant txs are also relevant (志宇)

Pull request description:

  ## Description

  This PR changes the behavior of `IndexedTxGraph` insert-if-relevant methods to consider relevant-tx-conflicts as relevant.

  Affected methods:
  * `.apply_block_relevant`
  * `.batch_insert_relevant`
  * `.batch_insert_relevant_unconfirmed`

  #### Rationale

  It is useful to be able to determine:

  * Why something is no longer part of the best history.
  * Whether it is possible that something can reappear in the best history.

  In order to do this, we need to track conflicts of spk-relevant transactions.

  For example, an incoming transaction may be evicted from the mempool due to insufficient fees or cancelled (a conflicting transaction is confirmed). The caller may want to handle these two possibilities differently:

  * **Transaction has insufficient fees** - the caller may want to CPFP the transaction.
  * **Transaction is cancelled/replaced** - The user may want to forget about this transaction once the conflict reaches x confirmations.

  The `IntentTracker` will make use of these relevant-conflicts to help determine the course of action.

  #### Side note about chain sources

  For some chain sources, obtaining relevant-conflicts is extremely costly or downright impossible (i.e. Electrum, BIP-158 filters).

  `bdk_bitcoind_rpc::Emitter` is still the most robust chain source to use.

  ### Changelog notice

  ```md
  Changed:
  - Behavior of `IndexedTxGraph` methods (`apply_block_relevant`, `batch_insert_relevant` and `batch_insert_relevant_unconfirmed`) to also consider conflicts of spk-relevant... (continued)

386 of 524 branches covered (73.66%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 1 file covered. (100.0%)

4302 of 5400 relevant lines covered (79.67%)

2200.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16859984937.1 10 Aug 2025 09:54AM UTC 27
79.14
GitHub Action Run
Source Files on build 16859984937
  • Tree
  • List 27
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 8d9df972 on github
  • Prev Build on master (#16794659338)
  • Next Build on master (#16982776455)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc