Inside Bitcoin
Opening the selected file…
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) 2009-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_CLIENTVERSION_H6#define BITCOIN_CLIENTVERSION_H8#include <util/macros.h>10#include <bitcoin-build-config.h> // IWYU pragma: keep12// Check that required client information is defined13#if !defined(CLIENT_VERSION_MAJOR) || !defined(CLIENT_VERSION_MINOR) || !defined(CLIENT_VERSION_BUILD) || !defined(CLIENT_VERSION_IS_RELEASE) || !defined(COPYRIGHT_YEAR)14#error Client version information missing: version is not defined by bitcoin-build-config.h or in any other way15#endif17//! Copyright string used in Windows .rc files18#define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL20// Windows .rc files include this header, but they cannot cope with real C++ code.21#if !defined(RC_INVOKED)23#include <string>24#include <vector>26inline constexpr int CLIENT_VERSION =2710000 * CLIENT_VERSION_MAJOR28+ 100 * CLIENT_VERSION_MINOR29+ 1 * CLIENT_VERSION_BUILD;31extern const std::string UA_NAME;34std::string FormatFullVersion();35std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);37#endif // RC_INVOKED39#endif // BITCOIN_CLIENTVERSION_H