6#ifndef BITCOIN_CLIENTVERSION_H
7#define BITCOIN_CLIENTVERSION_H
11#if defined(HAVE_CONFIG_H)
12#include <config/bitcoin-config.h>
14#include <config/version.h>
17#if !defined(CLIENT_VERSION_MAJOR) || !defined(CLIENT_VERSION_MINOR) || \
18 !defined(CLIENT_VERSION_REVISION) || !defined(COPYRIGHT_YEAR) || \
19 !defined(CLIENT_VERSION_IS_RELEASE)
20#error Client version information missing: version is not defined by bitcoin-config.h nor defined any other way
24#define COPYRIGHT_STR \
25 "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
33#if !defined(WINDRES_PREPROC)
48 const std::vector<std::string> &
comments);
const std::string CLIENT_BUILD
std::string CopyrightHolders(const std::string &strPrefix)
static constexpr int CLIENT_VERSION
bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
std::string FormatVersion(int nVersion)
std::string FormatFullVersion()
std::string LicenseInfo()
Returns licensing information (for -version)
const std::string CLIENT_NAME
std::string FormatUserAgent(const std::string &name, const std::string &version, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...