2014-12-17 02:47:57 +01:00
|
|
|
// Copyright (c) 2012-2014 The Bitcoin Core developers
|
2016-12-20 14:26:45 +01:00
|
|
|
// Copyright (c) 2014-2017 The Dash 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
|
|
|
|
2017-09-17 19:43:58 +02:00
|
|
|
static const int PROTOCOL_VERSION = 70208;
|
2012-04-12 18:23:58 +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.
|
2015-04-17 17:10:38 +02:00
|
|
|
static const int GETHEADERS_VERSION = 70077;
|
2014-07-12 00:02:35 +02:00
|
|
|
|
2014-10-26 07:32:29 +01:00
|
|
|
//! disconnect from peers older than this proto version
|
2017-12-12 02:24:10 +01:00
|
|
|
static const int MIN_PEER_PROTO_VERSION = 70208;
|
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
|
|
|
//! 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
|
2016-08-12 07:41:23 +02:00
|
|
|
static const int NO_BLOOM_VERSION = 70201;
|
2015-08-21 06:15:27 +02:00
|
|
|
|
2014-11-18 22:16:32 +01:00
|
|
|
//! "sendheaders" command and announcing blocks with headers starts with this version
|
2016-08-12 07:41:23 +02:00
|
|
|
static const int SENDHEADERS_VERSION = 70201;
|
2014-11-18 22:16:32 +01:00
|
|
|
|
2016-03-21 18:02:47 +01:00
|
|
|
//! "feefilter" tells peers to filter invs to you by fee starts with this version
|
2017-12-20 06:57:47 +01:00
|
|
|
static const int FEEFILTER_VERSION = 99999; // disable for now (clarify deployment later)
|
2016-03-21 18:02:47 +01:00
|
|
|
|
2017-12-07 10:43:23 +01:00
|
|
|
//! DIP0001 was activated in this version
|
2017-12-20 06:57:47 +01:00
|
|
|
static const int DIP0001_PROTOCOL_VERSION = 70208;
|
2017-12-07 10:43:23 +01:00
|
|
|
|
2014-08-28 22:21:03 +02:00
|
|
|
#endif // BITCOIN_VERSION_H
|