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

bitcoindevkit / bdk / 14776962254
79%

Build:
DEFAULT BRANCH: master
Ran 01 May 2025 02:22PM 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

01 May 2025 02:19PM UTC coverage: 82.54% (+0.1%) from 82.432%
14776962254

push

github

ValuedMammal
Merge bitcoindevkit/bdk#1808: Introduce canonicalization parameters

<a class=hub.com/bitcoindevkit/bdk/commit/53afb3511cb472c0fd91ccf2815fa0c44ffc56ba">53afb3511<a href="https://github.com/bitcoindevkit/bdk/commit/86cdaf4250e82003f5b13e0c2b95a8c8126a581e"> test(graph): Add additional witness scenarios (Wei Chen)
<a class="double-link" href="https://github.com/bitcoindevkit/bdk/commit/46af2a5ca4182a0b654c42e672f2a58bd39b5b96">46af2a5ca</a><a href="https://github.com/bitcoindevkit/bdk/commit/86cdaf4250e82003f5b13e0c2b95a8c8126a581e"> feat(chain)!: Add ability to modify canonicalization algorithm (志宇)
</a><a class="double-link" href="https://github.com/bitcoindevkit/bdk/commit/58fcf3287be09d28a34243cf7aa02b8de1012148">58fcf3287</a><a href="https://github.com/bitcoindevkit/bdk/commit/86cdaf4250e82003f5b13e0c2b95a8c8126a581e"> refactor(chain): Make private fields in `CanonicalIter` concise. (志宇)
</a><a class="double-link" href="https://github.com/bitcoindevkit/bdk/commit/5eb5e86b5e456a571a7bd217fb7117f5acf8cf41">5eb5e86b5</a> feat(chain): Signed txs should displace unsigned txs in `TxGraph`. (志宇)

Pull request description:

  Partially Fixes bitcoindevkit/bdk_wallet#40

  ### Description

  Add the ability to modify the canonicalization algorithm. Right now, the only modifier is `assume_canonical` which takes in a `Vec` (ordered list) of txids and superimposes it on the canonicalization algorithm. Txs later in the list (higher index) have a higher priority (in case of conflicts).

  ### Notes to the reviewers

  None at the moment.

  ### Changelog notice

  * Added `CanonicalizationParams` to allow the caller to modify the canonicalization algorithm. This in a new parameter on `CanonicalIter::new`.
  * Changed `TxGraph::insert_tx` to allow for updating a transaction's witness field. This is useful for initially introducing an unsigned tx and adding witnesses later on.

  ### 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 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

  #### Bugfixes:

  * [x] This pull request breaks the existing API
  * [x] I've added tests to reproduce the issue which are now passing
  * [x] I'm linking the issue being fixed by this PR

ACKs for top commit:
  LagginTimes:
    ACK 53afb3511cb472c0fd91ccf2815fa0c44ffc56ba
  ValuedMammal:
    ACK 53afb3511cb472c0fd91ccf281... (continued)

133 of 145 new or added lines in 2 files covered. (91.72%)

5200 of 6300 relevant lines covered (82.54%)

29739.14 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.9
0.16% crates/chain/src/canonical_iter.rs
11
83.85
0.28% crates/chain/src/tx_graph.rs
Jobs
ID Job ID Ran Files Coverage
1 14776962254.1 01 May 2025 02:22PM UTC 30
82.54
GitHub Action Run
Source Files on build 14776962254
  • Tree
  • List 30
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 86cdaf42 on github
  • Prev Build on master (#14768349820)
  • Next Build on master (#14777747999)
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