![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Go to the source code of this file.
Macros | |
#define | CLIENT_VERSION_SUFFIX "" |
#define | BUILD_DESC_WITH_SUFFIX(maj, min, rev, build, suffix) "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-" DO_STRINGIZE(suffix) |
First, include build.h if requested. More... | |
#define | BUILD_DESC_FROM_COMMIT(maj, min, rev, build, commit) "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-g" commit |
#define | BUILD_DESC_FROM_UNKNOWN(maj, min, rev, build) "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" |
#define | BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) |
#define | BUILD_DATE __DATE__ ", " __TIME__ |
Functions | |
const std::string | CLIENT_NAME ("Dash Core") |
const std::string | CLIENT_BUILD (BUILD_DESC CLIENT_VERSION_SUFFIX) |
const std::string | CLIENT_DATE (BUILD_DATE) |
static std::string | FormatVersion (int nVersion) |
std::string | FormatFullVersion () |
std::string | FormatSubVersion (const std::string &name, int nClientVersion, const std::vector< std::string > &comments) |
#define BUILD_DATE __DATE__ ", " __TIME__ |
Definition at line 74 of file clientversion.cpp.
#define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) |
Definition at line 66 of file clientversion.cpp.
#define BUILD_DESC_FROM_COMMIT | ( | maj, | |
min, | |||
rev, | |||
build, | |||
commit | |||
) | "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-g" commit |
Definition at line 54 of file clientversion.cpp.
#define BUILD_DESC_FROM_UNKNOWN | ( | maj, | |
min, | |||
rev, | |||
build | |||
) | "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" |
Definition at line 57 of file clientversion.cpp.
#define BUILD_DESC_WITH_SUFFIX | ( | maj, | |
min, | |||
rev, | |||
build, | |||
suffix | |||
) | "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-" DO_STRINGIZE(suffix) |
First, include build.h if requested.
The following part of the code determines the CLIENT_BUILD variable. Several mechanisms are used for this:
Definition at line 51 of file clientversion.cpp.
#define CLIENT_VERSION_SUFFIX "" |
Client version number
Definition at line 21 of file clientversion.cpp.
const std::string CLIENT_BUILD | ( | BUILD_DESC | CLIENT_VERSION_SUFFIX | ) |
Referenced by FormatFullVersion().
const std::string CLIENT_DATE | ( | BUILD_DATE | ) |
const std::string CLIENT_NAME | ( | "Dash Core" | ) |
Name of client reported in the 'version' message. Report the same name for both dashd and dash-qt, to make it harder for attackers to target servers or GUI users specifically.
std::string FormatFullVersion | ( | ) |
Definition at line 89 of file clientversion.cpp.
Referenced by AppInit(), AppInitRawTx(), AppInitRPC(), CKeePassIntegrator::constructHTTPPost(), CKeePassIntegrator::doHTTPPost(), ClientModel::formatFullVersion(), HelpMessageDialog::HelpMessageDialog(), InitLogging(), and SplashScreen::SplashScreen().
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-0014.mediawiki)
Definition at line 97 of file clientversion.cpp.
Referenced by AppInit2(), and CAlert::AppliesToMe().
|
static |
Definition at line 81 of file clientversion.cpp.
Referenced by FormatSubVersion().