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
Branch
powrefac
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 908
Build 908: arc lint + arc unit

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.