5#include <bitcoin-build-config.h>
25#include <bitcoin-build-info.h>
36 #define BUILD_DESC BUILD_GIT_TAG
37 #define BUILD_SUFFIX ""
39 #define BUILD_DESC "v" CLIENT_VERSION_STRING
40 #if CLIENT_VERSION_IS_RELEASE
41 #define BUILD_SUFFIX ""
42 #elif defined(BUILD_GIT_COMMIT)
43 #define BUILD_SUFFIX "-" BUILD_GIT_COMMIT
44 #elif defined(GIT_COMMIT_ID)
45 #define BUILD_SUFFIX "-g" GIT_COMMIT_ID
47 #define BUILD_SUFFIX "-unk"
53 return strprintf(
"%d.%d.%d", nVersion / 10000, (nVersion / 100) % 100, nVersion % 100);
65std::string
FormatSubVersion(
const std::string&
name,
int nClientVersion,
const std::vector<std::string>& comments)
67 std::string comments_str;
68 if (!comments.empty()) comments_str =
strprintf(
"(%s)",
Join(comments,
"; "));
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip...
static std::string FormatVersion(int nVersion)
std::string FormatFullVersion()
const std::string UA_NAME("Satoshi")
Name of client reported in the 'version' message.
auto Join(const C &container, const S &separator, UnaryOp unary_op)
Join all container items.