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

rust-bitcoin / rust-bitcoin / 8317237155
83%

Build:
DEFAULT BRANCH: master
Ran 17 Mar 2024 05:51PM UTC
Jobs 1
Files 91
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

17 Mar 2024 05:50PM UTC coverage: 83.927% (+0.02%) from 83.903%
8317237155

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2604: Enforce displaying Amount with trailing zeros

<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/d887423efcdad8db4c60ffe61f53d2356c82c87c">d887423ef Enforce displaying Amount with trailing zeros (448 OG)

Pull request description:

  It is common to display bitcoins using trailing zeros upto 8 decimals. This commit enforces:
  - Displaying Amount in BTC with trailing zeroes by eight decimal places if a precision on the Amount is not specified.
  - Displaying Amount in BTC upto the precision specified truncating the insignificant zeros.
  - Displaying amount in BTC without any decimals if the remainder of the amount divided by the satoshis in 1 BTC is equal to zero using formula `satoshis.rem_euclid(Amount::ONE_BTC.to_sat()) != 0`

  These are not breaking changes and all previous tests pass.

  A testcase is added to for changes introduced.

  Resolves: #2136

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

Tree-SHA512: c32e41216c7e16974308c04ce65e9d522bc

37 of 37 new or added lines in 1 file covered. (100.0%)

19732 of 23511 relevant lines covered (83.93%)

16449.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8317237155.1 17 Mar 2024 05:51PM UTC 0
83.93
GitHub Action Run
Source Files on build 8317237155
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8317237155
  • 93ca42cb on github
  • Prev Build on master (#8307227520)
  • Next Build on master (#8317301148)
  • 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