Bitcoin Core  22.99.0
P2P Digital Currency
init.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2020 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_INIT_H
7 #define BITCOIN_INIT_H
8 
9 #include <any>
10 #include <memory>
11 #include <string>
12 
14 static constexpr bool DEFAULT_DAEMON = false;
16 static constexpr bool DEFAULT_DAEMONWAIT = false;
17 
18 class ArgsManager;
19 struct NodeContext;
20 namespace interfaces {
21 struct BlockAndHeaderTipInfo;
22 }
23 
28 void InitLogging(const ArgsManager& args);
31 
36 bool AppInitBasicSetup(const ArgsManager& args);
48 bool AppInitSanityChecks();
65 
69 void SetupServerArgs(ArgsManager& argsman);
70 
72 std::string LicenseInfo();
73 
74 #endif // BITCOIN_INIT_H
interfaces
Definition: dummywallet.cpp:11
InitLogging
void InitLogging(const ArgsManager &args)
Initialize the logging infrastructure.
Definition: init.cpp:709
AppInitBasicSetup
bool AppInitBasicSetup(const ArgsManager &args)
Initialize bitcoin core: Basic context setup.
Definition: init.cpp:739
LicenseInfo
std::string LicenseInfo()
Returns licensing information (for -version)
Definition: init.cpp:569
interfaces::BlockAndHeaderTipInfo
Block and header tip information.
Definition: node.h:44
InitParameterInteraction
void InitParameterInteraction(ArgsManager &args)
Parameter interaction: change current parameters depending on various rules.
Definition: init.cpp:631
AppInitParameterInteraction
bool AppInitParameterInteraction(const ArgsManager &args)
Initialization: parameter interaction.
Definition: init.cpp:784
Interrupt
void Interrupt(NodeContext &node)
Interrupt threads.
Definition: init.cpp:158
AppInitSanityChecks
bool AppInitSanityChecks()
Initialization sanity checks: ecc init, sanity checks, dir lock.
Definition: init.cpp:1037
Shutdown
void Shutdown(NodeContext &node)
Definition: init.cpp:177
DEFAULT_DAEMONWAIT
static constexpr bool DEFAULT_DAEMONWAIT
Default value for -daemonwait option.
Definition: init.h:16
AppInitMain
bool AppInitMain(NodeContext &node, interfaces::BlockAndHeaderTipInfo *tip_info=nullptr)
Bitcoin core main initialization.
Definition: init.cpp:1076
ArgsManager
Definition: system.h:158
SetupServerArgs
void SetupServerArgs(ArgsManager &argsman)
Register all arguments with the ArgsManager.
Definition: init.cpp:351
node
Definition: interfaces.cpp:68
AppInitInterfaces
bool AppInitInterfaces(NodeContext &node)
Initialize node and wallet interface pointers.
Definition: init.cpp:1065
AppInitLockDataDirectory
bool AppInitLockDataDirectory()
Lock bitcoin core data directory.
Definition: init.cpp:1053
NodeContext
NodeContext struct containing references to chain state and connection state.
Definition: context.h:39
DEFAULT_DAEMON
static constexpr bool DEFAULT_DAEMON
Default value for -daemon option.
Definition: init.h:14