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 
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:886
AppInitBasicSetup
bool AppInitBasicSetup(const ArgsManager &args)
Initialize bitcoin core: Basic context setup.
Definition: init.cpp:933
LicenseInfo
std::string LicenseInfo()
Returns licensing information (for -version)
Definition: init.cpp:596
SetupServerArgs
void SetupServerArgs(NodeContext &node)
Register all arguments with the ArgsManager.
Definition: init.cpp:361
interfaces::BlockAndHeaderTipInfo
Block and header tip information.
Definition: node.h:43
InitParameterInteraction
void InitParameterInteraction(ArgsManager &args)
Parameter interaction: change current parameters depending on various rules.
Definition: init.cpp:808
AppInitParameterInteraction
bool AppInitParameterInteraction(const ArgsManager &args)
Initialization: parameter interaction.
Definition: init.cpp:978
Interrupt
void Interrupt(NodeContext &node)
Interrupt threads.
Definition: init.cpp:160
AppInitSanityChecks
bool AppInitSanityChecks()
Initialization sanity checks: ecc init, sanity checks, dir lock.
Definition: init.cpp:1236
Shutdown
void Shutdown(NodeContext &node)
Definition: init.cpp:176
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:1280
ArgsManager
Definition: system.h:166
node
Definition: interfaces.cpp:64
AppInitInterfaces
bool AppInitInterfaces(NodeContext &node)
Initialize node and wallet interface pointers.
Definition: init.cpp:1269
AppInitLockDataDirectory
bool AppInitLockDataDirectory()
Lock bitcoin core data directory.
Definition: init.cpp:1257
NodeContext
NodeContext struct containing references to chain state and connection state.
Definition: context.h:38
DEFAULT_DAEMON
static constexpr bool DEFAULT_DAEMON
Default value for -daemon option.
Definition: init.h:14