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

rust-bitcoin / rust-bitcoin / 8317237155 / 1
83%
master: 83%

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

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

19732 of 23511 relevant lines covered (83.93%)

16449.48 hits per line

Source Files on job 8317237155.1
  • Tree
  • List 0
  • Changed 13
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8317237155
  • 93ca42cb on github
  • Prev Job for on master (#8307227520.1)
  • Next Job for on master (#8317301148.1)
  • 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