aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorEric Lombrozo <[email protected]>2015-10-19 08:25:29 -0400
committerEric Lombrozo <[email protected]>2015-10-19 14:25:21 -0400
commit7801f4387d96c19de6dedc518e45d3037d9c53fa (patch)
treeada41d5bdb2ddfc03233b58fe9fa0bca51f72edf /src/consensus
parentMerge pull request #6837 (diff)
downloaddiscoin-7801f4387d96c19de6dedc518e45d3037d9c53fa.tar.xz
discoin-7801f4387d96c19de6dedc518e45d3037d9c53fa.zip
Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation.
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/params.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h
index c480a1cce..efbbbed35 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -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; }