Ignore old versionbit activations

Adds a hardcoded height to the consensus chain parameters for
ignoring versionbit activations prior to a fixed height.
This commit is contained in:
Anthony Towns
2019-09-06 00:28:52 +10:00
committed by John Newbery
parent 5e202382a9
commit fdb3e8f8b2
3 changed files with 8 additions and 1 deletions

View File

@@ -62,6 +62,9 @@ struct Params {
* Note that segwit v0 script rules are enforced on all blocks except the
* BIP 16 exception blocks. */
int SegwitHeight;
/** Don't warn about unknown BIP 9 activations below this height.
* This prevents us from warning about the CSV and segwit activations. */
int MinBIP9WarningHeight;
/**
* Minimum blocks including miner confirmation of the total of 2016 blocks in a retargeting period,
* (nPowTargetTimespan / nPowTargetSpacing) which is also used for BIP9 deployments.