aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2019-09-06 00:28:52 +1000
committerJohn Newbery <john@johnnewbery.com>2019-09-05 13:51:01 -0400
commitfdb3e8f8b27e3b0b2f88c32915975c6e4c299b1e (patch)
tree900f1d3854337c0239305802a30a57c357d9e240 /src/consensus
parent5e202382a987351a59d5cda98ea9f2aee99f61a5 (diff)
downloadbitcoin-fdb3e8f8b27e3b0b2f88c32915975c6e4c299b1e.tar.xz
Ignore old versionbit activations
Adds a hardcoded height to the consensus chain parameters for ignoring versionbit activations prior to a fixed height.
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/params.h3
1 files changed, 3 insertions, 0 deletions
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.