2014-12-16 17:47:57 -08:00
|
|
|
// Copyright (c) 2012-2014 The Bitcoin Core developers
|
2014-10-25 23:32:29 -07:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2019-07-18 07:16:09 -07:00
|
|
|
// file COPYING or https://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
|
|
|
|
2020-09-01 12:16:05 -07:00
|
|
|
static const int PROTOCOL_VERSION = 170013;
|
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
|
2017-06-23 17:19:25 -07:00
|
|
|
static const int INIT_PROTO_VERSION = 209;
|
|
|
|
|
|
|
|
//! In this version, 'getheaders' was introduced.
|
|
|
|
static const int GETHEADERS_VERSION = 31800;
|
2014-07-11 15:02:35 -07:00
|
|
|
|
2014-10-25 23:32:29 -07:00
|
|
|
//! disconnect from peers older than this proto version
|
2016-07-19 18:07:14 -07:00
|
|
|
static const int MIN_PEER_PROTO_VERSION = 170002;
|
2012-04-12 17:07:49 -07:00
|
|
|
|
2017-06-23 17:19:25 -07:00
|
|
|
//! nTime field added to CAddress, starting with this version;
|
|
|
|
//! if possible, avoid requesting addresses nodes older than this
|
|
|
|
static const int CADDR_TIME_VERSION = 31402;
|
|
|
|
|
|
|
|
//! BIP 0031, pong message, is enabled for all versions AFTER this one
|
|
|
|
static const int BIP0031_VERSION = 60000;
|
|
|
|
|
|
|
|
//! "mempool" command, enhanced "getdata" behavior starts with this version
|
|
|
|
static const int MEMPOOL_GD_VERSION = 60002;
|
|
|
|
|
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 = 170004;
|
|
|
|
|
2021-09-02 17:37:16 -07:00
|
|
|
//! Changes to CInv parsing, starting with this version:
|
|
|
|
//! - MSG_WTX type defined, which contains two 32-byte hashes.
|
|
|
|
static const int CINV_WTX_VERSION = 170014;
|
|
|
|
|
2014-08-28 13:21:03 -07:00
|
|
|
#endif // BITCOIN_VERSION_H
|