2014-11-27 18:29:18 +01:00
|
|
|
// Copyright (c) 2012-2014 The Bitcoin developers
|
2015-03-18 00:06:58 +01:00
|
|
|
// Copyright (c) 2014-2015 The Dash 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
|
|
|
|
2015-08-04 20:22:31 +02:00
|
|
|
static const int PROTOCOL_VERSION = 70101;
|
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
|
2015-07-24 03:55:20 +02:00
|
|
|
static const int MIN_PEER_PROTO_VERSION = 70066;
|
2012-04-13 02:07:49 +02:00
|
|
|
|
2015-04-03 00:51:08 +02:00
|
|
|
//! minimum peer version accepted by DarksendPool
|
2015-08-04 20:22:31 +02:00
|
|
|
static const int MIN_POOL_PEER_PROTO_VERSION = 70101;
|
2015-06-25 21:59:11 +02:00
|
|
|
|
2015-07-04 16:49:49 +02:00
|
|
|
//! minimum peer version for masternode budgets
|
2015-08-04 20:22:31 +02:00
|
|
|
static const int MIN_BUDGET_PEER_PROTO_VERSION = 70101;
|
2015-07-04 16:49:49 +02:00
|
|
|
|
2015-07-21 17:09:17 +02:00
|
|
|
//! minimum peer version for masternode winner broadcasts
|
2015-08-04 20:22:31 +02:00
|
|
|
static const int MIN_MNW_PEER_PROTO_VERSION = 70101;
|
2015-07-21 17:09:17 +02:00
|
|
|
|
2015-06-25 21:59:11 +02:00
|
|
|
//! minimum peer version that can receive masternode payments
|
|
|
|
// V1 - Last protocol version before update
|
|
|
|
// V2 - Newest protocol version
|
|
|
|
static const int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_1 = 70066;
|
2015-08-04 20:22:31 +02:00
|
|
|
static const int MIN_MASTERNODE_PAYMENT_PROTO_VERSION_2 = 70101;
|
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;
|
|
|
|
|
2014-08-28 22:21:03 +02:00
|
|
|
#endif // BITCOIN_VERSION_H
|