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

bitcoindevkit / bdk / 16188133791
78%

Build:
DEFAULT BRANCH: master
Ran 10 Jul 2025 06:52AM UTC
Jobs 1
Files 30
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 Jul 2025 03:04AM UTC coverage: 82.173% (-0.007%) from 82.18%
16188133791

push

github

evanlinjin
Merge bitcoindevkit/bdk#1976: Disallow unconfirmed coinbase

<a class=hub.com/bitcoindevkit/bdk/commit/c84035e4d804943da7b3308411a1402b1ff6e2ad">c84035e4d<a href="https://github.com/bitcoindevkit/bdk/commit/d9c2b95512608f694a177b823b163f67c3326e15"> test(chain): Add scenario: coinbase tx must not become unconfirmed (志宇)
<a class="double-link" href="https://github.com/bitcoindevkit/bdk/commit/e8da007011c3c7e247c26a1c9984319229bb0afa">e8da00701</a> fix(chain): Unconfirmed coinbase txs should never be canonical (志宇)

Pull request description:

  ### Description

  The logic in `CanonicalIter` includes transactions anchored to blocks outside the best chain, since they may still appear in the mempool.

  However, coinbase transactions can never be unconfirmed—a case the previous logic failed to exclude.

  ### Notes to the reviewers

  Sorry for my previous oversight on this.

  ### Changelog notice

  ```md
  Fixed:
  - During canonicalization, exclude coinbase transactions when considering txs that are anchored in stale blocks.
  ```

  ### Checklists

  #### 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 +nightly fmt` and `cargo clippy` before committing

  #### Bugfixes:

  ~* [ ] This pull request breaks the existing API~
  * [x] 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:
  evanlinjin:
    self-ACK c84035e4d804943da7b3308411a1402b1ff6e2ad

Tree-SHA512: 3aaff032c0437f6706e5045974a7528046b

3 of 4 new or added lines in 1 file covered. (75.0%)

5324 of 6479 relevant lines covered (82.17%)

32830.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.12
-0.45% crates/chain/src/canonical_iter.rs
Jobs
ID Job ID Ran Files Coverage
1 16188133791.1 10 Jul 2025 06:52AM UTC 30
82.17
GitHub Action Run
Source Files on build 16188133791
  • Tree
  • List 30
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d9c2b955 on github
  • Prev Build on master (#16186477990)
  • Next Build on master (#16352980005)
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