30 #define BUILD_DESC BUILD_GIT_TAG
31 #define BUILD_SUFFIX ""
33 #define BUILD_DESC "v" PACKAGE_VERSION
34 #if CLIENT_VERSION_IS_RELEASE
35 #define BUILD_SUFFIX ""
36 #elif defined(BUILD_GIT_COMMIT)
37 #define BUILD_SUFFIX "-" BUILD_GIT_COMMIT
38 #elif defined(GIT_COMMIT_ID)
39 #define BUILD_SUFFIX "-g" GIT_COMMIT_ID
41 #define BUILD_SUFFIX "-unk"
47 return strprintf(
"%d.%d.%d", nVersion / 10000, (nVersion / 100) % 100, nVersion % 100);
59std::string
FormatSubVersion(
const std::string&
name,
int nClientVersion,
const std::vector<std::string>& comments)
61 std::ostringstream ss;
64 if (!comments.empty())
66 std::vector<std::string>::const_iterator it(comments.begin());
68 for(++it; it != comments.end(); ++it)
const std::string CLIENT_NAME("Satoshi")
Name of client reported in the 'version' message.
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...
#define BUILD_DESC
git will put "#define GIT_COMMIT_ID ..." on the next line inside archives.
static std::string FormatVersion(int nVersion)
std::string FormatFullVersion()