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