diff options
| author | Eric Lombrozo <[email protected]> | 2015-10-19 08:25:29 -0400 |
|---|---|---|
| committer | Eric Lombrozo <[email protected]> | 2015-10-19 14:25:21 -0400 |
| commit | 7801f4387d96c19de6dedc518e45d3037d9c53fa (patch) | |
| tree | ada41d5bdb2ddfc03233b58fe9fa0bca51f72edf /src/consensus | |
| parent | Merge pull request #6837 (diff) | |
| download | discoin-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.h | 1 |
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; } |