diff options
Diffstat (limited to 'src/consensus/params.h')
| -rw-r--r-- | src/consensus/params.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index 873a93d78..f0fdae660 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -25,23 +25,20 @@ struct Params { int64_t nPowTargetSpacing; int64_t nPowTargetTimespan; int64_t DifficultyAdjustmentInterval() const { return nPowTargetTimespan / nPowTargetSpacing; } + + /** Dogecoin-specific parameters */ + bool fDigishieldDifficultyCalculation; + bool fPowAllowDigishieldMinDifficultyBlocks; // Allow minimum difficulty blocks where a retarget would normally occur + /** Auxpow parameters */ - int32_t nAuxpowChainId; - int nAuxpowStartHeight; + int16_t nAuxpowChainId; bool fStrictChainId; - int nLegacyBlocksBefore; // -1 for "always allow" + bool fAllowLegacyBlocks; - /** - * Check whether or not to allow legacy blocks at the given height. - * @param nHeight Height of the block to check. - * @return True if it is allowed to have a legacy version. - */ - bool AllowLegacyBlocks(unsigned nHeight) const - { - if (nLegacyBlocksBefore < 0) - return true; - return static_cast<int> (nHeight) < nLegacyBlocksBefore; - } + /** Height-aware consensus parameters */ + uint32_t nHeightEffective; // When these parameters come into use + struct Params *pLeft; // Left hand branch + struct Params *pRight; // Right hand branch }; } // namespace Consensus |