-
Notifications
You must be signed in to change notification settings - Fork 172
/
init.h
41 lines (29 loc) · 982 Bytes
/
init.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2021 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or https://opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_INIT_H
#define BITCOIN_INIT_H
#include "wallet/wallet.h"
#include <boost/thread.hpp>
//! Default value for -daemon option
static constexpr bool DEFAULT_DAEMON = false;
//! Default value for -daemonwait option
static constexpr bool DEFAULT_DAEMONWAIT = false;
extern CWallet* pwalletMain;
void InitLogging();
void StartShutdown();
bool ShutdownRequested();
void Shutdown(void* parg);
bool AppInit2(ThreadHandlerPtr threads);
void ThreadAppInit2(ThreadHandlerPtr th);
void AddLoggingArgs(ArgsManager& argsman);
/**
* Register all arguments with the ArgsManager
*/
void SetupServerArgs();
std::string VersionMessage();
std::string LogSomething();
extern bool fSnapshotRequest;
extern bool fResetBlockchainRequest;
#endif