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

dfinity / rust-dogecoin / 16287837077 / 1
83%
doge-master: 83%

Build:
DEFAULT BRANCH: doge-master
Ran 15 Jul 2025 08:14AM UTC
Files 97
Run time 3s
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

15 Jul 2025 08:13AM UTC coverage: 82.623% (-0.6%) from 83.245%
16287837077.1

push

github

web-flow
feat(pow): add difficulty calculation for pre-digishield blocks (5,001-144,999) (#9)

[XC-431](https://dfinity.atlassian.net/browse/XC-431?atlOrigin=eyJpIjoiNGZlYzIwYTg0NmE2NGNhOWE2NmUxZTBiNTdjNzE2NGIiLCJwIjoiaiJ9):
This PR adds the correct difficulty calculation for pre-digishield
blocks (i.e. blocks 5,001-144,999). It follows the previous PR
https://github.com/dfinity/rust-dogecoin/pull/8 which added the logic
for block period 0-5,000.

The main change is the addition of the correct `min_timespan` for a
difficulty adjustment interval allowed for a given block height, as
defined by [dogecoin's difficulty adjustment
algorithm](https://github.com/dogecoin/dogecoin/blob/51cbc1fd5/src/dogecoin.cpp#L57).
The relevant code can be found here:
https://github.com/dfinity/rust-dogecoin/commit/09daa88ab#diff-874f3e7cf5069afa5a60ceaf4b9542d0eR471-R478

[XC-431]:
https://dfinity.atlassian.net/browse/XC-431?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

17455 of 21126 relevant lines covered (82.62%)

16824.26 hits per line

Source Files on job 16287837077.1
  • Tree
  • List 97
  • Changed 82
  • Source Changed 2
  • Coverage Changed 82
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16287837077
  • 42269b99 on github
  • Prev Job for on doge-master (#15629198371.1)
  • Next Job for on doge-master (#16411792700.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