Auto merge of #1119 - ebfull:version-bump, r=ebfull

Bump the (minimum) protocol version to avoid invoking legacy behavior

This sets the current protocol version to `170002` (an order of magnitude larger than Bitcoin's) and the minimum to the same.

Closes #1107
This commit is contained in:
zkbot 2016-07-21 04:55:06 +00:00
commit cebeabb2f4
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
* network protocol versioning
*/
static const int PROTOCOL_VERSION = 70002;
static const int PROTOCOL_VERSION = 170002;
//! initial proto version, to be increased after version/verack negotiation
static const int INIT_PROTO_VERSION = 209;
@ -18,7 +18,7 @@ static const int INIT_PROTO_VERSION = 209;
static const int GETHEADERS_VERSION = 31800;
//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION = GETHEADERS_VERSION;
static const int MIN_PEER_PROTO_VERSION = 170002;
//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this