Bitcoin Core  21.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 namespace boost {
24 class thread_group;
25 } // namespace boost
26 
31 void InitLogging(const ArgsManager& args);
34 
39 bool AppInitBasicSetup(const ArgsManager& args);
51 bool AppInitSanityChecks();
68 
72 void SetupServerArgs(ArgsManager& argsman);
73 
75 std::string LicenseInfo();
76 
77 #endif // BITCOIN_INIT_H
interfaces
Definition: dummywallet.cpp:10
InitLogging
void InitLogging(const ArgsManager &args)
Initialize the logging infrastructure.
Definition: init.cpp:707
AppInitBasicSetup
bool AppInitBasicSetup(const ArgsManager &args)
Initialize bitcoin core: Basic context setup.
Definition: init.cpp:737
LicenseInfo
std::string LicenseInfo()
Returns licensing information (for -version)
Definition: init.cpp:567
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:629
AppInitParameterInteraction
bool AppInitParameterInteraction(const ArgsManager &args)
Initialization: parameter interaction.
Definition: init.cpp:782
Interrupt
void Interrupt(NodeContext &node)
Interrupt threads.
Definition: init.cpp:156
AppInitSanityChecks
bool AppInitSanityChecks()
Initialization sanity checks: ecc init, sanity checks, dir lock.
Definition: init.cpp:1023
Shutdown
void Shutdown(NodeContext &node)
Definition: init.cpp:175
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:1062
ArgsManager
Definition: system.h:160
SetupServerArgs
void SetupServerArgs(ArgsManager &argsman)
Register all arguments with the ArgsManager.
Definition: init.cpp:350
node
Definition: interfaces.cpp:66
AppInitInterfaces
bool AppInitInterfaces(NodeContext &node)
Initialize node and wallet interface pointers.
Definition: init.cpp:1051
AppInitLockDataDirectory
bool AppInitLockDataDirectory()
Lock bitcoin core data directory.
Definition: init.cpp:1039
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