Bitcoin Core  0.20.99
P2P Digital Currency
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
6 #ifndef BITCOIN_INIT_H
7 #define BITCOIN_INIT_H
9 #include <memory>
10 #include <string>
11 #include <util/system.h>
13 struct NodeContext;
14 namespace boost {
15 class thread_group;
16 } // namespace boost
17 namespace util {
18 class Ref;
19 } // namespace util
22 void Interrupt(NodeContext& node);
23 void Shutdown(NodeContext& node);
25 void InitLogging();
33 bool AppInitBasicSetup();
45 bool AppInitSanityChecks();
57 bool AppInitMain(const util::Ref& context, NodeContext& node);
62 void SetupServerArgs(NodeContext& node);
65 std::string LicenseInfo();
67 #endif // BITCOIN_INIT_H
Definition: httprpc.h:8
Definition: init.h:14
bool AppInitSanityChecks()
Initialization sanity checks: ecc init, sanity checks, dir lock.
Definition: init.cpp:1209
void InitParameterInteraction()
Parameter interaction: change current parameters depending on various rules.
Definition: init.cpp:803
void InitLogging()
Initialize the logging infrastructure.
Definition: init.cpp:872
bool AppInitParameterInteraction()
Initialization: parameter interaction.
Definition: init.cpp:960
NodeContext struct containing references to chain state and connection state.
Definition: context.h:34
bool AppInitLockDataDirectory()
Lock bitcoin core data directory.
Definition: init.cpp:1230
void Interrupt(NodeContext &node)
Interrupt threads.
Definition: init.cpp:158
Type-safe dynamic reference.
Definition: ref.h:21
bool AppInitBasicSetup()
Initialize bitcoin core: Basic context setup.
Definition: init.cpp:918
std::string LicenseInfo()
Returns licensing information (for -version)
Definition: init.cpp:589
void Shutdown(NodeContext &node)
Definition: init.cpp:174
void SetupServerArgs(NodeContext &node)
Register all arguments with the ArgsManager.
Definition: init.cpp:366
bool AppInitMain(const util::Ref &context, NodeContext &node)
Bitcoin core main initialization.
Definition: init.cpp:1242