Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1// Copyright (c) 2012-present The Bitcoin Core developers2// Distributed under the MIT software license, see the accompanying3// file COPYING or http://www.opensource.org/licenses/mit-license.php.5#ifndef BITCOIN_NODE_PROTOCOL_VERSION_H6#define BITCOIN_NODE_PROTOCOL_VERSION_H8/**9* network protocol versioning10*/12inline constexpr int PROTOCOL_VERSION = 70017;14//! initial proto version, to be increased after version/verack negotiation15inline constexpr int INIT_PROTO_VERSION = 209;17//! disconnect from peers older than this proto version18inline constexpr int MIN_PEER_PROTO_VERSION = 31800;20//! BIP 0031, pong message, is enabled for all versions AFTER this one21inline constexpr int BIP0031_VERSION = 60000;23//! "sendheaders" message type and announcing blocks with headers starts with this version24inline constexpr int SENDHEADERS_VERSION = 70012;26//! "feefilter" tells peers to filter invs to you by fee starts with this version27inline constexpr int FEEFILTER_VERSION = 70013;29//! short-id-based block download starts with this version30inline constexpr int SHORT_IDS_BLOCKS_VERSION = 70014;32//! not banning for invalid compact blocks starts with this version33inline constexpr int INVALID_CB_NO_BAN_VERSION = 70015;35//! "wtxidrelay" message type for wtxid-based relay starts with this version36inline constexpr int WTXID_RELAY_VERSION = 70016;38//! "feature" message type for feature negotiation starts with this version39inline constexpr int FEATURE_VERSION = 70017;41#endif // BITCOIN_NODE_PROTOCOL_VERSION_H