diff options
| author | Warren Togami <[email protected]> | 2013-10-25 23:21:21 -1000 |
|---|---|---|
| committer | Warren Togami <[email protected]> | 2013-10-25 23:46:37 -1000 |
| commit | 1ce418929a17c063a0a2e3b176b82d280ef053a6 (patch) | |
| tree | 50370fb2ae945912b23814c6c1bc0e6a3ca9e4bb /src/version.h | |
| parent | Merge pull request #3144 from Diapolo/message_sendcoinsdialog (diff) | |
| download | discoin-1ce418929a17c063a0a2e3b176b82d280ef053a6.tar.xz discoin-1ce418929a17c063a0a2e3b176b82d280ef053a6.zip | |
Split MIN_PROTO_VERSION into INIT_PROTO_VERSION and MIN_PEER_PROTO_VERSION
INIT_PROTO_VERSION is the initial version, after a succesful version/verack it is increased to a negotiated version.
MIN_PEER_PROTO_VERSION could be a different value to disconnect from peers older than a specified 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 f1e7c4cd7..f5fa9f213 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 |