diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-11-08 01:03:11 -0800 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-11-08 01:03:11 -0800 |
commit | 9a165e57140eea0663253c14db0d14b40bde562a (patch) | |
tree | 26aa5885d5ec103024a7b1ca8413487f01d6fd3a /src/version.h | |
parent | 7f0ccea7685cb66081bbd889be684eacd76ccd2c (diff) | |
parent | 1ce418929a17c063a0a2e3b176b82d280ef053a6 (diff) |
Merge pull request #3155 from wtogami/split_proto_var
Split MIN_PROTO_VERSION into INIT_PROTO_VERSION and MIN_PEER_PROTO_VERSION
Diffstat (limited to 'src/version.h')
-rw-r--r-- | src/version.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/version.h b/src/version.h index f1e7c4cd7b..f5fa9f213e 100644 --- a/src/version.h +++ b/src/version.h @@ -27,8 +27,11 @@ extern const std::string CLIENT_DATE; static const int PROTOCOL_VERSION = 70001; -// earlier versions not supported as of Feb 2012, and are disconnected -static const int MIN_PROTO_VERSION = 209; +// intial proto version, to be increased after version/verack negotiation +static const int INIT_PROTO_VERSION = 209; + +// disconnect from peers older than this proto version +static const int MIN_PEER_PROTO_VERSION = 209; // nTime field added to CAddress, starting with this version; // if possible, avoid requesting addresses nodes older than this |