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

tari-project / tari / 6391323881 / 1
61%
development: 61%

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

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 -->

72211 of 95896 relevant lines covered (75.3%)

188579.27 hits per line

Source Files on job 6391323881.1
  • Tree
  • List 0
  • Changed 285
  • Source Changed 2
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6391323881
  • f85a8785 on github
  • Prev Job for on development (#6353718739.1)
  • Next Job for on development (#6395225266.1)
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