aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/params.h
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2017-10-17 18:47:57 +1000
committerPieter Wuille <pieter.wuille@gmail.com>2017-11-06 19:09:05 -0800
commit526023aa7a99955dffcd406224963e6c193c1ddf (patch)
treee0c7c12f8f527197b960dd86b2cee08f2d1b3f2c /src/consensus/params.h
parent6157e8ce3937af3f46d3e7dd922d19d6dc272145 (diff)
Improve handling of BIP9Deployment limits
Small tweaks by Pieter Wuille.
Diffstat (limited to 'src/consensus/params.h')
-rw-r--r--src/consensus/params.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h
index 6240e82857..9d60c2413a 100644
--- a/src/consensus/params.h
+++ b/src/consensus/params.h
@@ -7,6 +7,7 @@
#define BITCOIN_CONSENSUS_PARAMS_H
#include "uint256.h"
+#include <limits>
#include <map>
#include <string>
@@ -31,6 +32,9 @@ struct BIP9Deployment {
int64_t nStartTime;
/** Timeout/expiry MedianTime for the deployment attempt. */
int64_t nTimeout;
+
+ /** Constant for nTimeout very far in the future. */
+ static constexpr int64_t NO_TIMEOUT = std::numeric_limits<int64_t>::max();
};
/**