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

Go to the source code of this file.

Enumerations

enum  HelpMessageMode { HMM_BITCOIND, HMM_BITCOIN_QT }
 

Functions

void StartShutdown ()
 
bool ShutdownRequested ()
 
void Interrupt (boost::thread_group &threadGroup)
 
void Shutdown ()
 
void InitLogging ()
 Initialize the logging infrastructure. More...
 
void InitParameterInteraction ()
 Parameter interaction: change current parameters depending on various rules. More...
 
bool AppInit2 (boost::thread_group &threadGroup, CScheduler &scheduler)
 
void PrepareShutdown ()
 
std::string HelpMessage (HelpMessageMode mode)
 
std::string LicenseInfo ()
 

Variables

CWalletpwalletMain
 

Enumeration Type Documentation

◆ HelpMessageMode

The help message mode determines what help message to show

Enumerator
HMM_BITCOIND 
HMM_BITCOIN_QT 

Definition at line 34 of file init.h.

Function Documentation

◆ AppInit2()

bool AppInit2 ( boost::thread_group &  threadGroup,
CScheduler scheduler 
)

Initialize Dash Core.

Precondition
Parameters should be parsed and config file should be read.

Definition at line 942 of file init.cpp.

Referenced by AppInit(), and BitcoinCore::initialize().

◆ HelpMessage()

std::string HelpMessage ( HelpMessageMode  mode)

Help for options shared between UI and daemon (for -help)

Definition at line 384 of file init.cpp.

Referenced by AppInit(), and HelpMessageDialog::HelpMessageDialog().

◆ InitLogging()

void InitLogging ( )

Initialize the logging infrastructure.

Definition at line 926 of file init.cpp.

Referenced by AppInit(), and BitcoinApplication::parameterSetup().

◆ InitParameterInteraction()

void InitParameterInteraction ( )

Parameter interaction: change current parameters depending on various rules.

Definition at line 818 of file init.cpp.

Referenced by AppInit(), and BitcoinApplication::parameterSetup().

◆ Interrupt()

void Interrupt ( boost::thread_group &  threadGroup)

Interrupt threads

Definition at line 197 of file init.cpp.

Referenced by AppInit(), BitcoinCore::shutdown(), and WaitForShutdown().

◆ LicenseInfo()

std::string LicenseInfo ( )

Returns licensing information (for -version)

Definition at line 637 of file init.cpp.

Referenced by AppInit(), and HelpMessageDialog::HelpMessageDialog().

◆ PrepareShutdown()

void PrepareShutdown ( )

Preparing steps before shutting down or restarting the wallet

Note: Shutdown() must be able to handle cases in which AppInit2() failed part of the way, for example if the data directory was found to be locked. Be sure that anything that writes files or flushes caches only does this if the respective module was initialized.

Definition at line 210 of file init.cpp.

Referenced by BitcoinCore::restart(), and Shutdown().

◆ Shutdown()

void Shutdown ( )

Shutdown is split into 2 parts: Part 1: shut down everything but the main wallet instance (done in PrepareShutdown() ) Part 2: delete wallet instance

In case of a restart PrepareShutdown() was already called before, but this method here gets called implicitly when the parent object is deleted. In this case we have to skip the PrepareShutdown() part because it was already executed and just delete the wallet instance.

Definition at line 315 of file init.cpp.

Referenced by AppInit(), and BitcoinCore::shutdown().

◆ ShutdownRequested()

◆ StartShutdown()

void StartShutdown ( )

Definition at line 164 of file init.cpp.

Referenced by SplashScreen::closeEvent(), encryptwallet(), stop(), and ThreadImport().

Variable Documentation

◆ pwalletMain

CWallet* pwalletMain