2014-12-17 02:47:57 +01:00
|
|
|
// Copyright (c) 2012-2014 The Bitcoin Core developers
|
2014-10-26 07:32:29 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2012-05-18 16:02:28 +02:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
2014-08-28 22:21:03 +02:00
|
|
|
|
2012-04-07 02:06:53 +02:00
|
|
|
#ifndef BITCOIN_VERSION_H
|
|
|
|
#define BITCOIN_VERSION_H
|
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
/**
|
|
|
|
* network protocol versioning
|
|
|
|
*/
|
2012-04-12 18:23:58 +02:00
|
|
|
|
2014-11-18 22:16:32 +01:00
|
|
|
static const int PROTOCOL_VERSION = 70012;
|
2012-04-07 02:06:53 +02:00
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! initial proto version, to be increased after version/verack negotiation
|
2013-10-26 11:21:21 +02:00
|
|
|
static const int INIT_PROTO_VERSION = 209;
|
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! In this version, 'getheaders' was introduced.
|
2014-07-12 00:02:35 +02:00
|
|
|
static const int GETHEADERS_VERSION = 31800;
|
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! disconnect from peers older than this proto version
|
2014-07-12 00:02:35 +02:00
|
|
|
static const int MIN_PEER_PROTO_VERSION = GETHEADERS_VERSION;
|
2012-04-13 02:07:49 +02:00
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! nTime field added to CAddress, starting with this version;
|
|
|
|
//! if possible, avoid requesting addresses nodes older than this
|
2012-04-13 02:07:49 +02:00
|
|
|
static const int CADDR_TIME_VERSION = 31402;
|
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! only request blocks from nodes outside this range of versions
|
2012-04-13 02:07:49 +02:00
|
|
|
static const int NOBLKS_VERSION_START = 32000;
|
|
|
|
static const int NOBLKS_VERSION_END = 32400;
|
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! BIP 0031, pong message, is enabled for all versions AFTER this one
|
2012-04-12 18:23:58 +02:00
|
|
|
static const int BIP0031_VERSION = 60000;
|
2012-04-11 18:38:03 +02:00
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! "mempool" command, enhanced "getdata" behavior starts with this version
|
2012-07-31 23:42:35 +02:00
|
|
|
static const int MEMPOOL_GD_VERSION = 60002;
|
|
|
|
|
2015-08-21 06:15:27 +02:00
|
|
|
//! "filter*" commands are disabled without NODE_BLOOM after and including this version
|
|
|
|
static const int NO_BLOOM_VERSION = 70011;
|
|
|
|
|
2014-11-18 22:16:32 +01:00
|
|
|
//! "sendheaders" command and announcing blocks with headers starts with this version
|
|
|
|
static const int SENDHEADERS_VERSION = 70012;
|
|
|
|
|
2014-08-28 22:21:03 +02:00
|
|
|
#endif // BITCOIN_VERSION_H
|