PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Enumerations | Functions
init.h File Reference
#include <string>
Include dependency graph for init.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  HelpMessageMode { HMM_BITCOIND, HMM_BITCOIN_QT }
 The help message mode determines what help message to show. More...
 

Functions

void StartShutdown ()
 
bool ShutdownRequested ()
 
void Interrupt ()
 Interrupt threads. More...
 
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. More...
 
void PrepareShutdown ()
 Preparing steps before shutting down or restarting the wallet. More...
 
void InitLogging ()
 Initialize the logging infrastructure. More...
 
void InitParameterInteraction ()
 Parameter interaction: change current parameters depending on various rules. More...
 
bool AppInit2 (bool isDaemon)
 Initialize prcy. More...
 
bool AppInitBasicSetup ()
 Initialize PRCY: Basic context setup. More...
 
std::string HelpMessage (HelpMessageMode mode)
 Help for options shared between UI and daemon (for -help) More...
 
std::string LicenseInfo ()
 Returns licensing information (for -version) More...
 

Enumeration Type Documentation

◆ HelpMessageMode

The help message mode determines what help message to show.

Enumerator
HMM_BITCOIND 
HMM_BITCOIN_QT 

Definition at line 38 of file init.h.

Function Documentation

◆ AppInit2()

bool AppInit2 ( bool  isDaemon)

Initialize prcy.

Precondition
Parameters should be parsed and config file should be read.
Todo:
*** do we still need this after -printtoconsole is gone?

Definition at line 909 of file init.cpp.

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

◆ AppInitBasicSetup()

bool AppInitBasicSetup ( )

Initialize PRCY: Basic context setup.

Note
This can be done before daemonization. Do not call Shutdown() if this function fails.
Precondition
Parameters should be parsed and config file should be read.

Definition at line 764 of file init.cpp.

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

◆ HelpMessage()

std::string HelpMessage ( HelpMessageMode  mode)

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

Definition at line 354 of file init.cpp.

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

◆ InitLogging()

void InitLogging ( )

Initialize the logging infrastructure.

Definition at line 880 of file init.cpp.

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

◆ InitParameterInteraction()

void InitParameterInteraction ( )

Parameter interaction: change current parameters depending on various rules.

Definition at line 811 of file init.cpp.

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

◆ Interrupt()

void Interrupt ( )

Interrupt threads.

Definition at line 166 of file init.cpp.

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

◆ LicenseInfo()

std::string LicenseInfo ( )

Returns licensing information (for -version)

Definition at line 574 of file init.cpp.

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

◆ PrepareShutdown()

void PrepareShutdown ( )

Preparing steps before shutting down or restarting the wallet.

Note: Shutdown() must be able to handle cases in which initialization 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 176 of file init.cpp.

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

◆ 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 274 of file init.cpp.

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

◆ ShutdownRequested()

bool ShutdownRequested ( )

Definition at line 135 of file init.cpp.

Here is the caller graph for this function:

◆ StartShutdown()

void StartShutdown ( )

Definition at line 131 of file init.cpp.

Here is the caller graph for this function: