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

rust-bitcoin / rust-bitcoin / 16891243172
83%

Build:
DEFAULT BRANCH: master
Ran 11 Aug 2025 08:25PM UTC
Jobs 1
Files 132
Run time 10min
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

11 Aug 2025 08:02PM UTC coverage: 83.366% (-0.02%) from 83.384%
16891243172

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4801: Move `CheckedData` to `p2p` crate

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/49089585d42f02da0e9f7bddc8ff924322ea458c">49089585d<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/bd64c76f2bbb277cc02a7375c69cb4d9810f44ce"> Move CheckedData to p2p (Tobin C. Harding)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/c1e8c56216f3c83e92c6e34e2a32745e6e4ae5d9">c1e8c5621</a> Use BlockHash to test serialization behaviour (Tobin C. Harding)

Pull request description:

  Patch 1 is at semi-trivial test change, preparation for patch 2.
  
  At first blush the `CheckedData` type looks like a general purpose checksum abstraction - it is the first four bytes of the `sha256d` hash of a byte vector. However, in this repo it is only ever used in `p2p` so the argument could be made that it is a checksum abstraction defined and used by the Bitcoin p2p layer.
  
  Furthermore the `CheckedData` type introduces a dependency on `hashes`, we are about to separate out the consensus encoding traits into a new crate and it would be nice to avoid a dependency on `hashes`.
  
  In preparation for moving the consensus encoding logic into a new crate move the `CheckedData` type to the `p2p` crate.
  
  If we later find the checksum abstraction useful outside of p2p we can move or duplicate it with little maintenance burden or API bother.


ACKs for top commit:
  apoelstra:
    ACK 49089585d42f02da0e9f7bddc8ff924322ea458c; successfully ran local tests


Tree-SHA512: 24e539e93d58fac9b0e318a89416503f51d

52 of 55 new or added lines in 2 files covered. (94.55%)

8 existing lines in 2 files now uncovered.

21541 of 25839 relevant lines covered (83.37%)

15048.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
92.41
0.16% p2p/src/message.rs

Coverage Regressions

Lines Coverage ∆ File
7
86.65
-0.46% bitcoin/src/psbt/mod.rs
1
95.67
0.24% bitcoin/src/consensus/encode.rs
Jobs
ID Job ID Ran Files Coverage
1 16891243172.1 11 Aug 2025 08:25PM UTC 132
83.37
GitHub Action Run
Source Files on build 16891243172
  • Tree
  • List 132
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16891243172
  • bd64c76f on github
  • Prev Build on master (#16890256821)
  • Next Build on master (#16909646800)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc