Bitcoin Core  24.99.0
P2P Digital Currency
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2022 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or
6 #ifndef BITCOIN_INIT_H
7 #define BITCOIN_INIT_H
9 #include <any>
10 #include <memory>
11 #include <string>
14 static constexpr bool DEFAULT_DAEMON = false;
16 static constexpr bool DEFAULT_DAEMONWAIT = false;
18 class ArgsManager;
19 namespace interfaces {
20 struct BlockAndHeaderTipInfo;
21 }
22 namespace kernel {
23 struct Context;
24 }
25 namespace node {
26 struct NodeContext;
27 } // namespace node
33 void InitLogging(const ArgsManager& args);
47 bool AppInitParameterInteraction(const ArgsManager& args, bool use_syscall_sandbox = true);
74 void SetupServerArgs(ArgsManager& argsman);
76 #endif // BITCOIN_INIT_H
void Shutdown(node::NodeContext &node)
Definition: init.cpp:228
static constexpr bool DEFAULT_DAEMON
Default value for -daemon option.
Definition: init.h:14
void InitLogging(const ArgsManager &args)
Initialize the logging infrastructure.
Definition: init.cpp:765
bool AppInitLockDataDirectory()
Lock bitcoin core data directory.
Definition: init.cpp:1073
void SetupServerArgs(ArgsManager &argsman)
Register all arguments with the ArgsManager.
Definition: init.cpp:402
bool AppInitMain(node::NodeContext &node, interfaces::BlockAndHeaderTipInfo *tip_info=nullptr)
Bitcoin core main initialization.
Definition: init.cpp:1091
void Interrupt(node::NodeContext &node)
Interrupt threads.
Definition: init.cpp:206
bool AppInitBasicSetup(const ArgsManager &args)
Initialize bitcoin core: Basic context setup.
Definition: init.cpp:795
static constexpr bool DEFAULT_DAEMONWAIT
Default value for -daemonwait option.
Definition: init.h:16
void InitParameterInteraction(ArgsManager &args)
Parameter interaction: change current parameters depending on various rules.
Definition: init.cpp:673
bool AppInitParameterInteraction(const ArgsManager &args, bool use_syscall_sandbox=true)
Initialization: parameter interaction.
Definition: init.cpp:836
bool AppInitInterfaces(node::NodeContext &node)
Initialize node and wallet interface pointers.
Definition: init.cpp:1085
bool AppInitSanityChecks(const kernel::Context &kernel)
Initialization sanity checks.
Definition: init.cpp:1059
Definition: init.h:25
ArgsManager args
Block and header tip information.
Definition: node.h:50
Context struct holding the kernel library's logically global state, and passed to external libbitcoin...
Definition: context.h:18
NodeContext struct containing references to chain state and connection state.
Definition: context.h:43