protocol_version.h raw

   1  // Copyright (c) 2012-present The Bitcoin Core developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef BITCOIN_NODE_PROTOCOL_VERSION_H
   6  #define BITCOIN_NODE_PROTOCOL_VERSION_H
   7  
   8  /**
   9   * network protocol versioning
  10   */
  11  
  12  static const int PROTOCOL_VERSION = 70017;
  13  
  14  //! initial proto version, to be increased after version/verack negotiation
  15  static const int INIT_PROTO_VERSION = 209;
  16  
  17  //! disconnect from peers older than this proto version
  18  static const int MIN_PEER_PROTO_VERSION = 31800;
  19  
  20  //! BIP 0031, pong message, is enabled for all versions AFTER this one
  21  static const int BIP0031_VERSION = 60000;
  22  
  23  //! "sendheaders" message type and announcing blocks with headers starts with this version
  24  static const int SENDHEADERS_VERSION = 70012;
  25  
  26  //! "feefilter" tells peers to filter invs to you by fee starts with this version
  27  static const int FEEFILTER_VERSION = 70013;
  28  
  29  //! short-id-based block download starts with this version
  30  static const int SHORT_IDS_BLOCKS_VERSION = 70014;
  31  
  32  //! not banning for invalid compact blocks starts with this version
  33  static const int INVALID_CB_NO_BAN_VERSION = 70015;
  34  
  35  //! "wtxidrelay" message type for wtxid-based relay starts with this version
  36  static const int WTXID_RELAY_VERSION = 70016;
  37  
  38  //! "feature" message type for feature negotiation starts with this version
  39  static const int FEATURE_VERSION = 70017;
  40  
  41  #endif // BITCOIN_NODE_PROTOCOL_VERSION_H
  42