From fdb3e8f8b27e3b0b2f88c32915975c6e4c299b1e Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Fri, 6 Sep 2019 00:28:52 +1000 Subject: Ignore old versionbit activations Adds a hardcoded height to the consensus chain parameters for ignoring versionbit activations prior to a fixed height. --- src/consensus/params.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/consensus') diff --git a/src/consensus/params.h b/src/consensus/params.h index 8263b0fef4..2f8c490dc4 100644 --- a/src/consensus/params.h +++ b/src/consensus/params.h @@ -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. -- cgit v1.2.3