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

rust-bitcoin / rust-bitcoin / 14894512875
83%

Build:
DEFAULT BRANCH: master
Ran 07 May 2025 10:33PM UTC
Jobs 1
Files 130
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

07 May 2025 10:32PM UTC coverage: 84.206% (-0.05%) from 84.26%
14894512875

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4458: locktimes: replace `MtpAndHeight` type with pair of `BlockMtp` and `BlockHeight`

47c77afaa units: delete MtpAndHeight type (Andrew Poelstra)
d82b8c0bc primitives: stop using MtpAndHeight (Andrew Poelstra)
72d5fbad7 units: stop using MtpAndHeight in locktime::relative is_satisfied_by methods (Andrew Poelstra)
d933c754f units: change type of MtpHeight::to_mtp to BlockMtp (Andrew Poelstra)
dcbdb7ca8 units: add checked arithmetic to Block{Height,Mtp}{Interval,} (Andrew Poelstra)
4300271f0 units: add constructor for absolute::Mtp from timestamps (Andrew Poelstra)
4e4601b3d units: rename BlockInterval to BlockHeightInterval (Andrew Poelstra)
cb882c5ce units: add global `BlockMtpInterval` type (Andrew Poelstra)
4e3af5162 units: add global `BlockMtp` type (Andrew Poelstra)
a3228d463 units: pull u32 conversions for BlockHeight/BlockInterval into macro (Andrew Poelstra)

Pull request description:

  This is a more involved PR than I'd expected but hopefully the individual commits make sense and are well-motivated. Essentially, my goal was to replace `MtpAndHeight` as used by relative locktimes with a pair of `Mtp` and `Height`.

  However, relative locktimes, when given a MTP/Height for the UTXO creation and the chain tip, are roughly modeled as "take a diff of MTPs to get a `relative::MtpInterval`, a diff of heights to get a `relative::HeightInterval`, and compare to the locktimes". *However*, we have no standalone MTP type to "take a diff of", and also there are failure modes when creating the diffs (e.g. if the diff would exceed the range of `MtpInterval` or `HeightInterval`).

  So I backed up and decided to use th... (continued)

152 of 189 new or added lines in 4 files covered. (80.42%)

5 existing lines in 2 files now uncovered.

23065 of 27391 relevant lines covered (84.21%)

16186.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
34
63.08
-8.97% units/src/block.rs
3
85.55
-0.68% units/src/locktime/relative.rs

Coverage Regressions

Lines Coverage ∆ File
4
63.08
-8.97% units/src/block.rs
1
86.38
-0.06% bitcoin/src/psbt/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 14894512875.1 07 May 2025 10:33PM UTC 130
84.21
GitHub Action Run
Source Files on build 14894512875
  • Tree
  • List 130
  • Changed 8
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14894512875
  • 4ca6cd60 on github
  • Prev Build on master (#14893951239)
  • Next Build on master (#14894981074)
  • 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