Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Macros | Functions
clientversion.cpp File Reference
#include <clientversion.h>
#include <util/translation.h>
#include <tinyformat.h>
#include <sstream>
#include <string>
#include <vector>
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.
 
#define BUILD_SUFFIX   "-unk"
 

Functions

const std::string CLIENT_NAME ("Bitcoin ABC")
 Name of client reported in the 'version' message.
 
const std::string CLIENT_BUILD (BUILD_DESC BUILD_SUFFIX)
 
std::string FormatVersion (int nVersion)
 
std::string FormatFullVersion ()
 
std::string FormatUserAgent (const std::string &name, const std::string &version, const std::vector< std::string > &comments)
 Format the subversion field according to BIP 14 spec.
 
std::string CopyrightHolders (const std::string &strPrefix)
 
std::string LicenseInfo ()
 Returns licensing information (for -version)
 

Macro Definition Documentation

◆ BUILD_DESC

#define BUILD_DESC
Value:
#define STRINGIZE(X)
Converts the parameter X to a string after macro replacement on X has been performed.
Definition macros.h:18
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85

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

$Format:ndefine GIT_COMMIT_ID "%H"$

Definition at line 38 of file clientversion.cpp.

◆ BUILD_SUFFIX

#define BUILD_SUFFIX   "-unk"

Definition at line 46 of file clientversion.cpp.

Function Documentation

◆ CLIENT_BUILD()

const std::string CLIENT_BUILD ( BUILD_DESC  BUILD_SUFFIX)

◆ CLIENT_NAME()

const std::string CLIENT_NAME ( "Bitcoin ABC"  )

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.

◆ CopyrightHolders()

std::string CopyrightHolders ( const std::string &  strPrefix)

Definition at line 88 of file clientversion.cpp.

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

◆ FormatFullVersion()

std::string FormatFullVersion ( )

Definition at line 63 of file clientversion.cpp.

Here is the caller graph for this function:

◆ FormatUserAgent()

std::string FormatUserAgent ( const std::string &  name,
const std::string &  version,
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 71 of file clientversion.cpp.

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

◆ FormatVersion()

std::string FormatVersion ( int  nVersion)

Definition at line 52 of file clientversion.cpp.

Here is the caller graph for this function:

◆ LicenseInfo()

std::string LicenseInfo ( )

Returns licensing information (for -version)

Definition at line 93 of file clientversion.cpp.

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