diff options
author | Eric Lombrozo <elombrozo@gmail.com> | 2015-10-19 08:25:29 -0400 |
---|---|---|
committer | Eric Lombrozo <elombrozo@gmail.com> | 2015-10-19 14:25:21 -0400 |
commit | 7801f4387d96c19de6dedc518e45d3037d9c53fa (patch) | |
tree | ada41d5bdb2ddfc03233b58fe9fa0bca51f72edf /src/consensus | |
parent | 5f5ee0f3ce6bfe8c0b1d15b5a498077f7a59ee03 (diff) |
Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation.
Diffstat (limited to 'src/consensus')
-rw-r--r-- | src/consensus/params.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index c480a1cce1..efbbbed352 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; } |