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