Bitcoin
init.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2018 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 namespace interfaces {
14 class Chain;
15 class ChainClient;
16 } // namespace interfaces
17 
20 {
21  std::unique_ptr<interfaces::Chain> chain;
22  std::vector<std::unique_ptr<interfaces::ChainClient>> chain_clients;
23 };
24 
25 namespace boost
26 {
27 class thread_group;
28 } // namespace boost
29 
31 void Interrupt();
34 void InitLogging();
37 
42 bool AppInitBasicSetup();
54 bool AppInitSanityChecks();
67 
71 void SetupServerArgs();
72 
74 std::string LicenseInfo();
75 
76 #endif // BITCOIN_INIT_H
bool AppInitMain(InitInterfaces &interfaces)
Definition: init.cpp:1226
Definition: init.h:25
bool AppInitSanityChecks()
Definition: init.cpp:1193
std::unique_ptr< interfaces::Chain > chain
Definition: init.h:21
void InitParameterInteraction()
Parameter interaction: change current parameters depending on various rules.
Definition: init.cpp:783
void InitLogging()
Initialize the logging infrastructure.
Definition: init.cpp:857
bool AppInitParameterInteraction()
Definition: init.cpp:942
std::vector< std::unique_ptr< interfaces::ChainClient > > chain_clients
Definition: init.h:22
Definition: dummywallet.cpp:11
void Shutdown(InitInterfaces &interfaces)
Definition: init.cpp:196
bool AppInitLockDataDirectory()
Definition: init.cpp:1214
void Interrupt()
Definition: init.cpp:180
bool AppInitBasicSetup()
Definition: init.cpp:901
std::string LicenseInfo()
Definition: init.cpp:564
void SetupServerArgs()
Definition: init.cpp:360
Pointers to interfaces used during init and destroyed on shutdown.
Definition: init.h:19