Bitcoin Core  0.20.99
P2P Digital Currency
Macros | Functions
clientversion.cpp File Reference
#include <clientversion.h>
#include <tinyformat.h>
Include dependency graph for clientversion.cpp:

Go to the source code of this file.

Macros

#define BUILD_DESC
 git will put "#define GIT_COMMIT_ID ..." on the next line inside archives. More...
 
#define BUILD_SUFFIX   "-unk"
 

Functions

const std::string CLIENT_NAME ("Satoshi")
 Name of client reported in the 'version' message. More...
 
const std::string CLIENT_BUILD (BUILD_DESC BUILD_SUFFIX)
 
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) More...
 

Macro Definition Documentation

◆ BUILD_DESC

#define BUILD_DESC
Value:
#define CLIENT_VERSION_MINOR
#define CLIENT_VERSION_REVISION
#define STRINGIZE(X)
Converts the parameter X to a string after macro replacement on X has been performed.
Definition: clientversion.h:21
#define CLIENT_VERSION_BUILD
#define CLIENT_VERSION_MAJOR

git will put "#define GIT_COMMIT_ID ..." on the next line inside archives.

Format
n::define GIT_COMMIT_ID "%H"

Definition at line 33 of file clientversion.cpp.

◆ BUILD_SUFFIX

#define BUILD_SUFFIX   "-unk"

Definition at line 40 of file clientversion.cpp.

Function Documentation

◆ CLIENT_BUILD()

const std::string CLIENT_BUILD ( BUILD_DESC  BUILD_SUFFIX)
Here is the caller graph for this function:

◆ CLIENT_NAME()

const std::string CLIENT_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.

◆ FormatFullVersion()

std::string FormatFullVersion ( )

Definition at line 54 of file clientversion.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FormatSubVersion()

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 62 of file clientversion.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FormatVersion()

static std::string FormatVersion ( int  nVersion)
static

Definition at line 46 of file clientversion.cpp.

Here is the caller graph for this function: