Page MenuHomePhabricator

Do some refactoring in pow.cpp to make it easier to introduce new difficulty adjustement algorithm.
ClosedPublic

Authored by deadalnix on Sep 27 2017, 17:11.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Add the regtest clause up-front rather than in the retargeting code.

src/pow.cpp
57 ↗(On Diff #1458)

Does this take care of the logic previously handled by:

if (pindexPrev == nullptr) {

on L16?

src/pow.cpp
57 ↗(On Diff #1458)

No, line 90 does that.

This revision is now accepted and ready to land.Sep 30 2017, 18:04
This revision was automatically updated to reflect the committed changes.