From 526023aa7a99955dffcd406224963e6c193c1ddf Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Tue, 17 Oct 2017 18:47:57 +1000 Subject: Improve handling of BIP9Deployment limits Small tweaks by Pieter Wuille. --- src/consensus/params.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/consensus/params.h') 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 #include #include @@ -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::max(); }; /** -- cgit v1.2.3