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

rust-bitcoin / rust-bitcoin / 15447886098
83%

Build:
DEFAULT BRANCH: master
Ran 04 Jun 2025 04:43PM UTC
Jobs 1
Files 130
Run time 5min
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

04 Jun 2025 04:42PM UTC coverage: 84.402% (-0.01%) from 84.414%
15447886098

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4534: Make `FeeRate` use MvB internally

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/56516757ad8874d8121dba468946546bb8fd7d4e">56516757a<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Add code comment to amount calculation (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/8cf1dc39b59cc6a6e98fdd50029e1b721536b66d">8cf1dc39b</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Fix incorrect code comment (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/7c186e6081fbc6af1b7907cc06e769e3b174be69">7c186e608</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Refactor fee functions (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/bf0776e3dd8f457ec5c4b368d05ffb09d2cda20d">bf0776e3d</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Remove panic using checked arithmetic (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/b65860067f7da1f4e665eb14d77adc6db9a3ba59">b65860067</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Make fee functions const (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/9b2fc021b21c44828e362b99fedf5654b2eeb785">9b2fc021b</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Improve rustdocs on FeeRate (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/1bd1e89458fe5ddca8c5c199bd3859a09640c636">1bd1e8945</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/a13ba99c11a1260e5129caca8dbe0a031d178a6f"> Re-introduce FeeRate encapsulate module (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/b27d8e581933aab5d7af5b034f9a422bc41c9bb5">b27d8e581 Change the internal representation of FeeRate (Tobin C. Harding)
2e0b88ba7 bitcoin: Fix dust 'fee' identifiers (Tobin C. Harding)
399bca531 Reduce the FeeRate::MAX value (Tobin C. Harding)
d174c06a4 Saturate to_fee to Amount::MAX (Tobin C. Harding)
64ac33754 Add missing argument docs (Tobin C. Harding)
fe0a448e7 Temporarily remove const from fee calc function (Tobin C. Harding)
b929022d5 Add floor/ceil versions of to_sat_per_kwu (Tobin C. Harding)
64098e457 Remove encapsulate module from fee rate (Tobin C. Harding)

Pull request description:

  The `FeeRate` is a bit entangled with amount and weight.  Also we have an off-by-one bug caused by rounding errors and the fact that we use kwu internally.

  We can get more precision in the fee rate by internally using per million virtual bytes.

  - Fix: #4516
  - Fix: #4497
  - Fix: #3806

ACKs for top commit:
  apoelstra:
    ACK 56516757ad8874d8121dba468946546bb8fd7d4e; successfully ran local tests

Tree-SHA512: 0c6e7e2c9a... (continued)

163 of 181 new or added lines in 7 files covered. (90.06%)

16 existing lines in 4 files now uncovered.

23533 of 27882 relevant lines covered (84.4%)

15909.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
90.37
2.87% units/src/fee.rs
5
86.21
0.14% bitcoin/src/psbt/mod.rs
5
87.77
0.49% units/src/fee_rate/mod.rs
2
22.11
-0.24% units/src/fee_rate/serde.rs

Coverage Regressions

Lines Coverage ∆ File
11
77.17
-11.96% units/src/result.rs
3
90.37
2.87% units/src/fee.rs
1
86.21
0.14% bitcoin/src/psbt/mod.rs
1
22.11
-0.24% units/src/fee_rate/serde.rs
Jobs
ID Job ID Ran Files Coverage
1 15447886098.1 04 Jun 2025 04:43PM UTC 130
84.4
GitHub Action Run
Source Files on build 15447886098
  • Tree
  • List 130
  • Changed 8
  • Source Changed 8
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15447886098
  • a13ba99c on github
  • Prev Build on master (#15378089414)
  • Next Build on master (#15448828568)
  • Delete
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