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

tari-project / tari / 6391323881
61%

Build:
DEFAULT BRANCH: development
Ran 03 Oct 2023 01:18PM UTC
Jobs 1
Files 715
Run time 21s
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

03 Oct 2023 09:44AM UTC coverage: 75.301% (+0.02%) from 75.278%
6391323881

push

github

web-flow
feat: prevent possible division by zero in difficulty calculation (#5828)

Description
---
Prevented possible division by zero panic in `fn
u256_scalar_to_difficulty(scalar: U256) -> Result<Difficulty,
DifficultyError>`

Motivation and Context
---
Code should not be able to panic.

How Has This Been Tested?
---
Unit test added

What process can a PR reviewer use to test or verify this change?
---
Code walkthrough

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->

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

72211 of 95896 relevant lines covered (75.3%)

188579.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6391323881.1 03 Oct 2023 01:18PM UTC 0
75.3
GitHub Action Run
Source Files on build 6391323881
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6391323881
  • f85a8785 on github
  • Prev Build on development (#6353718739)
  • Next Build on development (#6395225266)
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