Changeset View
Changeset View
Standalone View
Standalone View
src/init.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_INIT_H | #ifndef BITCOIN_INIT_H | ||||
#define BITCOIN_INIT_H | #define BITCOIN_INIT_H | ||||
#include <string> | #include <string> | ||||
class Config; | class Config; | ||||
class CScheduler; | class CScheduler; | ||||
class CWallet; | class CWallet; | ||||
class HTTPRPCRequestProcessor; | class HTTPRPCRequestProcessor; | ||||
class RPCServer; | |||||
namespace boost { | namespace boost { | ||||
class thread_group; | class thread_group; | ||||
} // namespace boost | } // namespace boost | ||||
void StartShutdown(); | void StartShutdown(); | ||||
bool ShutdownRequested(); | bool ShutdownRequested(); | ||||
/** Interrupt threads */ | /** Interrupt threads */ | ||||
Show All 10 Lines | |||||
*/ | */ | ||||
bool AppInitBasicSetup(); | bool AppInitBasicSetup(); | ||||
/** | /** | ||||
* Initialization: parameter interaction. | * Initialization: parameter interaction. | ||||
* @note This can be done before daemonization. | * @note This can be done before daemonization. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitBasicSetup should have been called. | * AppInitBasicSetup should have been called. | ||||
*/ | */ | ||||
bool AppInitParameterInteraction(Config &config); | bool AppInitParameterInteraction(Config &config, RPCServer &rpcServer); | ||||
/** | /** | ||||
* Initialization sanity checks: ecc init, sanity checks, dir lock. | * Initialization sanity checks: ecc init, sanity checks, dir lock. | ||||
* @note This can be done before daemonization. | * @note This can be done before daemonization. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitParameterInteraction should have been called. | * AppInitParameterInteraction should have been called. | ||||
*/ | */ | ||||
bool AppInitSanityChecks(); | bool AppInitSanityChecks(); | ||||
/** | /** | ||||
Show All 18 Lines |