Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation.

This commit is contained in:
Eric Lombrozo
2015-10-19 08:25:29 -04:00
parent 5f5ee0f3ce
commit 7801f4387d
3 changed files with 7 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ struct Params {
/** Proof of work parameters */
uint256 powLimit;
bool fPowAllowMinDifficultyBlocks;
bool fPowNoRetargeting;
int64_t nPowTargetSpacing;
int64_t nPowTargetTimespan;
int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; }