HomePhabricator

Add unit tests for next difficulty calculations
34e5015cd21eUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add unit tests for next difficulty calculations

Split GetNextWorkRequired() into two functions to allow the difficulty calculations to
be tested without requiring a full blockchain.
Add unit tests to cover basic difficulty calculation, plus each of the min/max actual
time, and maximum difficulty target conditions.

Details

Provenance
Ross Nicoll <jrn@jrn.me.uk>Authored on Feb 21 2015, 12:57
deadalnixPushed on May 14 2017, 22:04
Parents
rABCaaba10f27505: Revert "Make nicer pull request merge messages"
Branches
Unknown
Tags
Unknown

Event Timeline

Ross Nicoll <jrn@jrn.me.uk> committed rABC34e5015cd21e: Add unit tests for next difficulty calculations (authored by Ross Nicoll <jrn@jrn.me.uk>).Feb 21 2015, 13:14