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

rust-bitcoin / rust-bitcoin / 8523508788
83%

Build:
DEFAULT BRANCH: master
Ran 02 Apr 2024 01:19PM UTC
Jobs 1
Files 92
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

02 Apr 2024 01:18PM UTC coverage: 83.138% (+0.002%) from 83.136%
8523508788

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2337: Add check to max difficulty transition threshold

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/fd6fedc3ad07de9fc8e13eb8dd9beaa8e6dc8785">fd6fedc3a<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/499f36f97264d62d59ac5177536ca643cf983bf2"> Improve API for max target threshold calculation (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/6e47d57744a4ddc76b13b12586ded228525b4707">6e47d5774</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/499f36f97264d62d59ac5177536ca643cf983bf2"> Rename difficulty transition threshold functions (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/4121c9a09fba775ae89d1e44082596dd229a6e9d">4121c9a09</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/499f36f97264d62d59ac5177536ca643cf983bf2"> Rename Params::pow_limit to max_attainable_target (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/f0f6d3f1627cd3ebb0ae12bfc92690b102168824">f0f6d3f16</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/499f36f97264d62d59ac5177536ca643cf983bf2"> Take Params instead of Network in difficulty function (Tobin C. Harding)
</a><a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/104dee9376ea7abdc16b39eab74317af19a359e9">104dee937</a><a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/499f36f97264d62d59ac5177536ca643cf983bf2"> Debug assert that target != zero in difficulty calc (Tobin C. Harding)
c1ba496a0 Document current behaviour of difficulty_float (Tobin C. Harding)
3d0114637 Allow needless-borrows-for-generic-args (Tobin C. Harding)
2a6821b42 Use link to CompactTarget in rustdoc (Tobin C. Harding)

Pull request description:

  When computing the maximum difficulty transition threshold we forgot to check that the returned `Target` is not bigger than the maximum. This value is network specific so keep the original logic but with `_unchecked` on the function name.

  This was noted in the discussion on #2161

ACKs for top commit:
  apoelstra:
    ACK fd6fedc3ad07de9fc8e13eb8dd9beaa8e6dc8785
  sanket1729:
    ACK fd6fedc3ad07de9fc8e13eb8dd9beaa8e6dc8785

Tree-SHA512: 520ee2a076dc7bcdb569e22b21efb3ae74d

12 of 22 new or added lines in 3 files covered. (54.55%)

19101 of 22975 relevant lines covered (83.14%)

16888.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8523508788.1 02 Apr 2024 01:19PM UTC 0
83.14
GitHub Action Run
Source Files on build 8523508788
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8523508788
  • 499f36f9 on github
  • Prev Build on master (#8515631286)
  • Next Build on master (#8529894026)
  • 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