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

rust-bitcoin / rust-bitcoin / 15255853031
83%

Build:
DEFAULT BRANCH: master
Ran 26 May 2025 02:03PM UTC
Jobs 1
Files 129
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

26 May 2025 02:01PM UTC coverage: 84.631% (-0.07%) from 84.699%
15255853031

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4554: Sane InputWeightPredition Arbitrary Type

<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/8dd24cb67b948e619038b387d6c3bd79252a5de1">8dd24cb67 Add Arbitrary type for InputWeightPrediction (yancy)

Pull request description:

  This type creates sane Arbitrary InputWeightPrediction types that do not panic.  To this end, when a custom type is created by calling new() or from_slice() constructor, only use values that would no greater than block size 4 MB of witness data or 1 MB of non-witness data.  This idea is from the discussion here  https://github.com/rust-bitcoin/rust-bitcoin/issues/4547

  I'd be up for a future PR that limits the constructors to no greater than 1MB or 4MB witness data, although I feel like this Arbitrary type will be less controversial.

  Furthermore, I did test this locally against my application and no panics where produced either through the constructor nor auxiliary methods `total_weight` or `witness_weight`.

ACKs for top commit:
  tcharding:
    ACK 8dd24cb67b948e619038b387d6c3bd79252a5de1
  apoelstra:
    ACK 8dd24cb67b948e619038b387d6c3bd79252a5de1; successfully ran local tests

Tree-SHA512: ff33f1a6c01cda040542fec0c8be5e52722

0 of 21 new or added lines in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

23525 of 27797 relevant lines covered (84.63%)

15864.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
94.09
-1.7% bitcoin/src/blockdata/transaction.rs

Coverage Regressions

Lines Coverage ∆ File
1
86.11
-0.06% bitcoin/src/psbt/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 15255853031.1 26 May 2025 02:03PM UTC 129
84.63
GitHub Action Run
Source Files on build 15255853031
  • Tree
  • List 129
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15255853031
  • 9371018c on github
  • Prev Build on master (#15240185177)
  • Next Build on master (#15260698759)
  • 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