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

bitcoindevkit / bdk / 24847417053
79%
master: 78%

Build:
Build:
LAST BUILD BRANCH: release/bitcoind_rpc_0_22_1
DEFAULT BRANCH: master
Ran 23 Apr 2026 04:49PM 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

23 Apr 2026 04:46PM UTC coverage: 79.334% (-0.009%) from 79.343%
24847417053

push

github

evanlinjin
Merge bitcoindevkit/bdk#2174: fix(chain): prevent `merge_chains` from replacing the genesis block

<a class=hub.com/bitcoindevkit/bdk/commit/<a class="double-link" href="https://git"><a class=hub.com/bitcoindevkit/bdk/commit/be8e156115e21750158d44394341f1d41dfbf90f">be8e15611 fix(chain): prevent `merge_chains` from replacing the genesis block (Elias Rohrer)

Pull request description:

  ### Description

  Other code paths (`disconnect_from`, `CheckPoint::insert`) already protect height 0 from modification, but `merge_chains` allowed an update chain with a different genesis hash to silently replace the wallet's existing genesis block. Return `CannotConnectError` when the update attempts to change the block hash at height 0.

  Co-Authored-By: HAL 9000

  ### Checklists

  #### All Submissions:

  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)

  #### 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:
  ValuedMammal:
    ACK be8e156115e21750158d44394341f1d41dfbf90f
  evanlinjin:
    ACK be8e156115e21750158d44394341f1d41dfbf90f

Tree-SHA512: 743c95f28a6186721a5241fc9a873cbb4a6

386 of 524 branches covered (73.66%)

Branch coverage included in aggregate %.

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

1 existing line in 1 file now uncovered.

4401 of 5510 relevant lines covered (79.87%)

2302.88 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
75.12
-0.06% crates/chain/src/local_chain.rs
Jobs
ID Job ID Ran Files Coverage
1 24847417053.1 23 Apr 2026 04:49PM UTC 27
79.33
GitHub Action Run
Source Files on build 24847417053
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f47cb0b6 on github
  • Prev Build on release/chain-0.23.x (#24522573978)
  • Next Build on release/chain-0.23.x (#25557975584)
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