diff options
| author | Anthony Towns <[email protected]> | 2017-10-17 18:47:57 +1000 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-11-06 19:09:05 -0800 |
| commit | 526023aa7a99955dffcd406224963e6c193c1ddf (patch) | |
| tree | e0c7c12f8f527197b960dd86b2cee08f2d1b3f2c /src/consensus | |
| parent | Merge #11499: [Qt] Add upload and download info to the peerlist (debug menu) (diff) | |
| download | discoin-526023aa7a99955dffcd406224963e6c193c1ddf.tar.xz discoin-526023aa7a99955dffcd406224963e6c193c1ddf.zip | |
Improve handling of BIP9Deployment limits
Small tweaks by Pieter Wuille.
Diffstat (limited to 'src/consensus')
| -rw-r--r-- | src/consensus/params.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/consensus/params.h b/src/consensus/params.h index 6240e8285..9d60c2413 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(); }; /** |