#include "init.h"
#include "addrman.h"
#include "amount.h"
#include "chain.h"
#include "chainparams.h"
#include "checkpoints.h"
#include "compat/sanity.h"
#include "consensus/validation.h"
#include "httpserver.h"
#include "httprpc.h"
#include "key.h"
#include "validation.h"
#include "miner.h"
#include "netbase.h"
#include "net.h"
#include "net_processing.h"
#include "policy/policy.h"
#include "rpc/server.h"
#include "rpc/register.h"
#include "script/standard.h"
#include "script/sigcache.h"
#include "scheduler.h"
#include "timedata.h"
#include "txdb.h"
#include "txmempool.h"
#include "torcontrol.h"
#include "ui_interface.h"
#include "util.h"
#include "utilmoneystr.h"
#include "validationinterface.h"
#include "warnings.h"
#include <stdint.h>
#include <stdio.h>
#include <memory>
#include <signal.h>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/split.hpp>
#include <boost/bind/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/function.hpp>
#include <boost/interprocess/sync/file_lock.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/thread.hpp>
#include <openssl/crypto.h>
Go to the source code of this file.
|
class | CCoinsViewErrorCatcher |
| This is a minimally invasive approach to shutdown on LevelDB read errors from the chainstate, while keeping user interface out of the common library, which is shared between bitcoind, and bitcoin-qt and non-server tools. More...
|
|
struct | CImportingNow |
|
◆ MIN_CORE_FILEDESCRIPTORS
#define MIN_CORE_FILEDESCRIPTORS 150 |
◆ BindFlags
Used to pass flags to the Bind() function.
Enumerator |
---|
BF_NONE | |
BF_EXPLICIT | |
BF_REPORT_ERROR | |
BF_WHITELIST | |
Definition at line 92 of file init.cpp.
◆ AppInitBasicSetup()
bool AppInitBasicSetup |
( |
| ) |
|
Initialize bitcoin core: Basic context setup.
- Note
- This can be done before daemonization.
- Precondition
- Parameters should be parsed and config file should be read.
Definition at line 821 of file init.cpp.
◆ AppInitMain()
bool AppInitMain |
( |
boost::thread_group & |
threadGroup, |
|
|
CScheduler & |
scheduler |
|
) |
| |
Bitcoin core main initialization.
- Note
- This should only be done after daemonization.
- Precondition
- Parameters should be parsed and config file should be read, AppInitSanityChecks should have been called.
Definition at line 1156 of file init.cpp.
◆ AppInitParameterInteraction()
bool AppInitParameterInteraction |
( |
| ) |
|
Initialization: parameter interaction.
- Note
- This can be done before daemonization.
- Precondition
- Parameters should be parsed and config file should be read, AppInitBasicSetup should have been called.
Definition at line 879 of file init.cpp.
◆ AppInitSanityChecks()
bool AppInitSanityChecks |
( |
| ) |
|
Initialization sanity checks: ecc init, sanity checks, dir lock.
- Note
- This can be done before daemonization.
- Precondition
- Parameters should be parsed and config file should be read, AppInitParameterInteraction should have been called.
Definition at line 1140 of file init.cpp.
◆ AppInitServers()
bool AppInitServers |
( |
boost::thread_group & |
threadGroup | ) |
|
◆ CleanupBlockRevFiles()
void CleanupBlockRevFiles |
( |
| ) |
|
◆ fDumpMempoolLater()
std::atomic<bool> fDumpMempoolLater |
( |
false |
| ) |
|
◆ fRequestShutdown()
std::atomic<bool> fRequestShutdown |
( |
false |
| ) |
|
◆ HandleSIGHUP()
void HandleSIGHUP |
( |
int |
| ) |
|
◆ HandleSIGTERM()
void HandleSIGTERM |
( |
int |
| ) |
|
Signal handlers are very limited in what they are allowed to do, so:
Definition at line 276 of file init.cpp.
◆ HelpMessage()
Help for options shared between UI and daemon (for -help)
Definition at line 319 of file init.cpp.
◆ InitLogging()
Initialize the logging infrastructure.
Definition at line 787 of file init.cpp.
◆ InitParameterInteraction()
void InitParameterInteraction |
( |
| ) |
|
Parameter interaction: change current parameters depending on various rules.
Definition at line 719 of file init.cpp.
◆ InitSanityCheck()
bool InitSanityCheck |
( |
void |
| ) |
|
Sanity checks Ensure that Bitcoin is running in a usable environment with all necessary library support.
Definition at line 688 of file init.cpp.
◆ Interrupt()
void Interrupt |
( |
boost::thread_group & |
threadGroup | ) |
|
Interrupt threads.
Definition at line 172 of file init.cpp.
◆ LicenseInfo()
std::string LicenseInfo |
( |
| ) |
|
Returns licensing information (for -version)
Definition at line 510 of file init.cpp.
◆ OnRPCPreCommand()
◆ OnRPCStarted()
◆ OnRPCStopped()
◆ Shutdown()
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 184 of file init.cpp.
◆ ShutdownRequested()
bool ShutdownRequested |
( |
| ) |
|
◆ StartShutdown()
◆ ThreadImport()
void ThreadImport |
( |
std::vector< boost::filesystem::path > |
vImportFiles | ) |
|
◆ fFeeEstimatesInitialized
bool fFeeEstimatesInitialized = false |
◆ g_connman
◆ peerLogic