Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
init.h
Go to the documentation of this file.
1// Copyright (c) 2009-2010 Satoshi Nakamoto
2// Copyright (c) 2009-present 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 <atomic>
10
12inline constexpr bool DEFAULT_DAEMON = false;
14inline constexpr bool DEFAULT_DAEMONWAIT = false;
15
16class ArgsManager;
17namespace interfaces {
18struct BlockAndHeaderTipInfo;
19}
20namespace kernel {
21struct Context;
22}
23namespace node {
24struct NodeContext;
25} // namespace node
26
31
36void InitLogging(const ArgsManager& args);
39
44bool AppInitBasicSetup(const ArgsManager& args, std::atomic<int>& exit_status);
73
77void SetupServerArgs(ArgsManager& argsman, bool can_listen_ipc=false);
78
81
82#endif // BITCOIN_INIT_H
int exit_status
ArgsManager & args
Definition bitcoind.cpp:280
Interrupt(node)
Shutdown(node)
void InitLogging(const ArgsManager &args)
Initialize global loggers.
Definition init.cpp:883
bool AppInitBasicSetup(const ArgsManager &args, std::atomic< int > &exit_status)
Initialize bitcoin core: Basic context setup.
Definition init.cpp:912
bool ShutdownRequested(node::NodeContext &node)
Return whether node shutdown was requested.
Definition init.cpp:269
bool StartIndexBackgroundSync(NodeContext &node)
Validates requirements to run the indexes and spawns each index initial sync thread.
Definition init.cpp:2431
bool AppInitParameterInteraction(const ArgsManager &args)
Initialization: parameter interaction.
Definition init.cpp:949
bool AppInitInterfaces(NodeContext &node)
Initialize node and wallet interface pointers.
Definition init.cpp:1279
void InitParameterInteraction(ArgsManager &args)
Parameter interaction: change current parameters depending on various rules.
Definition init.cpp:794
bool AppInitMain(NodeContext &node, interfaces::BlockAndHeaderTipInfo *tip_info)
Bitcoin core main initialization.
Definition init.cpp:1496
bool AppInitLockDirectories()
Lock bitcoin core critical directories.
Definition init.cpp:1267
void SetupServerArgs(ArgsManager &argsman, bool can_listen_ipc)
Register all arguments with the ArgsManager.
Definition init.cpp:477
void InitContext(NodeContext &node)
Initialize node context shutdown and args variables.
Definition init.cpp:232
bool AppInitSanityChecks(const kernel::Context &kernel)
Initialization sanity checks.
Definition init.cpp:1248
constexpr bool DEFAULT_DAEMON
Default value for -daemon option.
Definition init.h:12
constexpr bool DEFAULT_DAEMONWAIT
Default value for -daemonwait option.
Definition init.h:14
Block and header tip information.
Definition node.h:46