Bitcoin Core  0.19.99
P2P Digital Currency
init.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2019 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 <memory>
10 #include <string>
11 #include <util/system.h>
12 
13 struct NodeContext;
14 namespace boost {
15 class thread_group;
16 } // namespace boost
17 
19 void Interrupt(NodeContext& node);
20 void Shutdown(NodeContext& node);
22 void InitLogging();
25 
30 bool AppInitBasicSetup();
42 bool AppInitSanityChecks();
54 bool AppInitMain(NodeContext& node);
55 
59 void SetupServerArgs();
60 
62 std::string LicenseInfo();
63 
64 #endif // BITCOIN_INIT_H
Definition: init.h:14
bool AppInitSanityChecks()
Initialization sanity checks: ecc init, sanity checks, dir lock.
Definition: init.cpp:1163
void InitParameterInteraction()
Parameter interaction: change current parameters depending on various rules.
Definition: init.cpp:767
void InitLogging()
Initialize the logging infrastructure.
Definition: init.cpp:836
bool AppInitParameterInteraction()
Initialization: parameter interaction.
Definition: init.cpp:921
NodeContext struct containing references to chain state and connection state.
Definition: context.h:31
bool AppInitLockDataDirectory()
Lock bitcoin core data directory.
Definition: init.cpp:1184
bool AppInitMain(NodeContext &node)
Bitcoin core main initialization.
Definition: init.cpp:1196
void Interrupt(NodeContext &node)
Interrupt threads.
Definition: init.cpp:161
bool AppInitBasicSetup()
Initialize bitcoin core: Basic context setup.
Definition: init.cpp:880
std::string LicenseInfo()
Returns licensing information (for -version)
Definition: init.cpp:564
void Shutdown(NodeContext &node)
Definition: init.cpp:177
void SetupServerArgs()
Setup the arguments for gArgs.
Definition: init.cpp:350