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