![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <bitcoin-build-config.h>#include <clientversion.h>#include <util/string.h>#include <util/translation.h>#include <tinyformat.h>#include <string>#include <vector>#include <bitcoin-build-info.h>Go to the source code of this file.
Macros | |
| #define | BUILD_DESC "v" CLIENT_VERSION_STRING |
| #define | BUILD_SUFFIX "-suse" |
Functions | |
| const std::string | UA_NAME ("Satoshi") |
| Name of client reported in the 'version' message. | |
| static std::string | FormatVersion (int nVersion) |
| std::string | FormatFullVersion () |
| 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). | |
| std::string | CopyrightHolders (const std::string &strPrefix) |
| std::string | LicenseInfo () |
| Returns licensing information (for -version). | |
| template<typename C, typename S, typename UnaryOp> | |
| auto | Join (const C &container, const S &separator, UnaryOp unary_op) |
| Join all container items. | |
| #define BUILD_DESC "v" CLIENT_VERSION_STRING |
Definition at line 41 of file clientversion.cpp.
| #define BUILD_SUFFIX "-suse" |
Definition at line 49 of file clientversion.cpp.
| std::string CopyrightHolders | ( | const std::string & | strPrefix | ) |
Definition at line 74 of file clientversion.cpp.
| std::string FormatFullVersion | ( | ) |
| 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 67 of file clientversion.cpp.
|
static |
| auto util::Join | ( | const C & | container, |
| const S & | separator, | ||
| UnaryOp | unary_op ) |
Join all container items.
Typically used to concatenate strings but accepts containers with elements of any type.
| container | The items to join |
| separator | The separator |
| unary_op | Apply this operator to each item |
Definition at line 205 of file string.h.
| std::string LicenseInfo | ( | ) |
Returns licensing information (for -version).
Definition at line 86 of file clientversion.cpp.
| const std::string UA_NAME | ( | "Satoshi" | ) |
Name of client reported in the 'version' message.
Report the same name for both bitcoind and bitcoin-qt, to make it harder for attackers to target servers or GUI users specifically.