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

rust-bitcoin / rust-bitcoin / 16764599533
83%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2025 12:42AM UTC
Jobs 1
Files 132
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

06 Aug 2025 12:40AM UTC coverage: 83.464% (+0.02%) from 83.446%
16764599533

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4736: p2p: Add a `UserAgent` 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/10c61ddc1f1d7e1973fbf7a9092b4cd0a2613b6b">10c61ddc1<a href="https://github.com/rust-bitcoin/rust-bitcoin/commit/cfc381462f6b6073bad6671ccc9525eb446b334f"> p2p: Use formatted user agent (rustaceanrob)
<a class="double-link" href="https://github.com/rust-bitcoin/rust-bitcoin/commit/b63357dc3cff82c77c40728b9657861e955c40df">b63357dc3</a> p2p: Add a `UserAgent` type (rustaceanrob)

Pull request description:

  There is a BIP that defines what a typical user agent should look like in a `version` message sent by a bitcoin node. All of the formatting suggestions are just recommendations, but users that would like to follow the recommendations should be able to do so easily. Instead of wasting their time reading a string formatting BIP, I attempt to make it as easy as possible here to create a user agent correctly. In practice people put stupid shit in here all the time, so there is no validation when reading these off the wire.
  
  Originally inspired by some work of nyonson, so tagging him here for a review.
  
  Hoping to not waste too much reviewer bandwidth here, so all of the test cases are pretty much unaltered. This is a convenience type for users that want to play by the rules.
  
  ref: https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki


ACKs for top commit:
  tcharding:
    ACK 10c61ddc1f1d7e1973fbf7a9092b4cd0a2613b6b
  apoelstra:
    ACK 10c61ddc1f1d7e1973fbf7a9092b4cd0a2613b6b; successfully ran local tests


Tree-SHA512: 8756d260841bae278fd6ad4a9c1156b8725

113 of 123 new or added lines in 2 files covered. (91.87%)

6 existing lines in 1 file now uncovered.

21547 of 25816 relevant lines covered (83.46%)

15159.36 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
81.28
15.4% p2p/src/message_network.rs

Coverage Regressions

Lines Coverage ∆ File
6
86.71
-0.39% bitcoin/src/psbt/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 16764599533.1 06 Aug 2025 12:42AM UTC 132
83.46
GitHub Action Run
Source Files on build 16764599533
  • Tree
  • List 132
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16764599533
  • cfc38146 on github
  • Prev Build on master (#16763758541)
  • Next Build on master (#16766998488)
  • 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