2017-11-09 19:34:51 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
|
|
|
|
* Copyright (C) 2012-2014 The Bitcoin Core developers
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2014-08-28 22:21:03 +02:00
|
|
|
|
2018-01-16 10:47:52 +00:00
|
|
|
#ifndef FLOWEE_VERSION_H
|
|
|
|
|
#define FLOWEE_VERSION_H
|
2012-04-07 02:06:53 +02:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
/**
|
|
|
|
|
* network protocol versioning
|
|
|
|
|
*/
|
2012-04-12 12:23:58 -04:00
|
|
|
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int PROTOCOL_VERSION = 70012;
|
2012-04-07 02:06:53 +02:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
//! initial proto version, to be increased after version/verack negotiation
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int INIT_PROTO_VERSION = 209;
|
2013-10-25 23:21:21 -10:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
//! In this version, 'getheaders' was introduced.
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int GETHEADERS_VERSION = 31800;
|
2014-07-12 00:02:35 +02:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
//! nTime field added to CAddress, starting with this version;
|
|
|
|
|
//! if possible, avoid requesting addresses nodes older than this
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int CADDR_TIME_VERSION = 31402;
|
2012-04-12 20:07:49 -04:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
//! only request blocks from nodes outside this range of versions
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int NOBLKS_VERSION_START = 32000;
|
|
|
|
|
constexpr int NOBLKS_VERSION_END = 32400;
|
2012-04-12 20:07:49 -04:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
//! BIP 0031, pong message, is enabled for all versions AFTER this one
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int BIP0031_VERSION = 60000;
|
2012-04-11 12:38:03 -04:00
|
|
|
|
2014-10-26 14:32:29 +08:00
|
|
|
//! "mempool" command, enhanced "getdata" behavior starts with this version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int MEMPOOL_GD_VERSION = 60002;
|
2012-07-31 17:42:35 -04:00
|
|
|
|
2014-11-18 22:16:32 +01:00
|
|
|
//! "sendheaders" command and announcing blocks with headers starts with this version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int SENDHEADERS_VERSION = 70012;
|
2014-11-18 22:16:32 +01:00
|
|
|
|
2019-05-08 10:53:18 +02:00
|
|
|
//! "feefilter" tells peers to filter invs to you by fee starts with this
|
|
|
|
|
//! version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int FEEFILTER_VERSION = 70013;
|
2019-05-08 10:53:18 +02:00
|
|
|
|
|
|
|
|
//! short-id-based block download starts with this version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int SHORT_IDS_BLOCKS_VERSION = 70014;
|
2019-05-08 10:53:18 +02:00
|
|
|
|
|
|
|
|
//! not banning for invalid compact blocks starts with this version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int INVALID_CB_NO_BAN_VERSION = 70015;
|
2019-05-08 10:53:18 +02:00
|
|
|
|
2017-02-08 17:28:21 +01:00
|
|
|
//! Expedited Relay enabled in this version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int EXPEDITED_VERSION = 80002;
|
2017-02-08 17:28:21 +01:00
|
|
|
|
2019-05-08 10:53:18 +02:00
|
|
|
|
|
|
|
|
//! disconnect from peers older than this proto version
|
2020-04-17 16:14:36 +02:00
|
|
|
constexpr int MIN_PEER_PROTO_VERSION = SENDHEADERS_VERSION;
|
2019-05-08 10:53:18 +02:00
|
|
|
|
2018-01-16 10:47:52 +00:00
|
|
|
#endif
|