Dash Core  0.12.2.1
P2P Digital Currency
clientversion.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Macros

#define CLIENT_VERSION_MAJOR   0
 These need to be macros, as clientversion.cpp's and dash*-res.rc's voodoo requires it. More...
 
#define CLIENT_VERSION_MINOR   12
 
#define CLIENT_VERSION_REVISION   2
 
#define CLIENT_VERSION_BUILD   1
 
#define CLIENT_VERSION_IS_RELEASE   true
 Set to true for release, false for prerelease or test build. More...
 
#define COPYRIGHT_YEAR   2017
 
#define STRINGIZE(X)   DO_STRINGIZE(X)
 
#define DO_STRINGIZE(X)   #X
 
#define COPYRIGHT_STR   "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash Core Developers"
 Copyright string used in Windows .rc files. More...
 

Functions

std::string FormatFullVersion ()
 
std::string FormatSubVersion (const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
 

Variables

static const int CLIENT_VERSION
 
const std::string CLIENT_NAME
 
const std::string CLIENT_BUILD
 
const std::string CLIENT_DATE
 

Macro Definition Documentation

◆ CLIENT_VERSION_BUILD

#define CLIENT_VERSION_BUILD   1

Definition at line 20 of file clientversion.h.

◆ CLIENT_VERSION_IS_RELEASE

#define CLIENT_VERSION_IS_RELEASE   true

Set to true for release, false for prerelease or test build.

Definition at line 23 of file clientversion.h.

Referenced by GetWarnings(), and ClientModel::isReleaseVersion().

◆ CLIENT_VERSION_MAJOR

#define CLIENT_VERSION_MAJOR   0

These need to be macros, as clientversion.cpp's and dash*-res.rc's voodoo requires it.

client versioning and copyright year

Definition at line 17 of file clientversion.h.

◆ CLIENT_VERSION_MINOR

#define CLIENT_VERSION_MINOR   12

Definition at line 18 of file clientversion.h.

◆ CLIENT_VERSION_REVISION

#define CLIENT_VERSION_REVISION   2

Definition at line 19 of file clientversion.h.

◆ COPYRIGHT_STR

#define COPYRIGHT_STR   "2009-" STRINGIZE(COPYRIGHT_YEAR) " The Bitcoin Core Developers, 2014-" STRINGIZE(COPYRIGHT_YEAR) " The Dash Core Developers"

Copyright string used in Windows .rc files.

Definition at line 41 of file clientversion.h.

◆ COPYRIGHT_YEAR

#define COPYRIGHT_YEAR   2017

Copyright year (2009-this) Todo: update this when changing our copyright comments in the source

Definition at line 29 of file clientversion.h.

Referenced by LicenseInfo(), and SplashScreen::SplashScreen().

◆ DO_STRINGIZE

#define DO_STRINGIZE (   X)    #X

Definition at line 38 of file clientversion.h.

◆ STRINGIZE

#define STRINGIZE (   X)    DO_STRINGIZE(X)

Converts the parameter X to a string after macro replacement on X has been performed. Don't merge these into one macro!

Definition at line 37 of file clientversion.h.

Function Documentation

◆ FormatFullVersion()

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

Referenced by AppInit2(), and CAlert::AppliesToMe().

Variable Documentation

◆ CLIENT_BUILD

const std::string CLIENT_BUILD

Referenced by dumpwallet().

◆ CLIENT_DATE

const std::string CLIENT_DATE

Referenced by dumpwallet(), and InitLogging().

◆ CLIENT_NAME

◆ CLIENT_VERSION

const int CLIENT_VERSION
static
Initial value:
=
#define CLIENT_VERSION_MAJOR
These need to be macros, as clientversion.cpp&#39;s and dash*-res.rc&#39;s voodoo requires it...
Definition: clientversion.h:17
#define CLIENT_VERSION_MINOR
Definition: clientversion.h:18
#define CLIENT_VERSION_BUILD
Definition: clientversion.h:20
#define CLIENT_VERSION_REVISION
Definition: clientversion.h:19

dashd-res.rc includes this file, but it cannot cope with real c++ code. WINDRES_PREPROC is defined to indicate that its pre-processor is running. Anything other than a define should be guarded below.

Definition at line 54 of file clientversion.h.

Referenced by AcceptBlock(), RecentRequestsTableModel::addNewRequest(), AppInit2(), CAlert::AppliesToMe(), CDB::CDB(), ConnectBlock(), CDBBatch::Erase(), CDB::Erase(), CDB::Exists(), CDBWrapper::Exists(), CWalletDB::FindWalletTx(), getinfo(), CDBIterator::GetKey(), getnetworkinfo(), GetTransaction(), CDBIterator::GetValue(), InitBlockIndex(), CWalletDB::ListAccountCreditDebit(), LoadBlockIndexDB(), LoadExternalBlockFile(), CWalletDB::LoadWallet(), PrepareShutdown(), CFlatDB< T >::Read(), CAddrDB::Read(), CBanDB::Read(), CDB::Read(), CDBWrapper::Read(), ReadBlockFromDisk(), CTxMemPool::ReadFeeEstimates(), CWalletDB::Recover(), CDB::Rewrite(), CDBIterator::Seek(), CAlert::Sign(), ThreadSendAlert(), CFlatDB< T >::Write(), CDBBatch::Write(), CAddrDB::Write(), CBanDB::Write(), CDB::Write(), WriteBlockToDisk(), and CTxMemPool::WriteFeeEstimates().