Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
// 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. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include "init.h" | #include <init.h> | ||||
#include "addrman.h" | #include <addrman.h> | ||||
#include "amount.h" | #include <amount.h> | ||||
#include "chain.h" | #include <chain.h> | ||||
#include "chainparams.h" | #include <chainparams.h> | ||||
#include "checkpoints.h" | #include <checkpoints.h> | ||||
#include "compat/sanity.h" | #include <compat/sanity.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "consensus/validation.h" | #include <consensus/validation.h> | ||||
#include "diskblockpos.h" | #include <diskblockpos.h> | ||||
#include "fs.h" | #include <fs.h> | ||||
#include "httprpc.h" | #include <httprpc.h> | ||||
#include "httpserver.h" | #include <httpserver.h> | ||||
#include "key.h" | #include <key.h> | ||||
#include "miner.h" | #include <miner.h> | ||||
#include "net.h" | #include <net.h> | ||||
#include "net_processing.h" | #include <net_processing.h> | ||||
#include "netbase.h" | #include <netbase.h> | ||||
#include "policy/policy.h" | #include <policy/policy.h> | ||||
#include "rpc/register.h" | #include <rpc/register.h> | ||||
#include "rpc/server.h" | #include <rpc/server.h> | ||||
#include "scheduler.h" | #include <scheduler.h> | ||||
#include "script/scriptcache.h" | #include <script/scriptcache.h> | ||||
#include "script/sigcache.h" | #include <script/sigcache.h> | ||||
#include "script/standard.h" | #include <script/standard.h> | ||||
#include "timedata.h" | #include <timedata.h> | ||||
#include "torcontrol.h" | #include <torcontrol.h> | ||||
#include "txdb.h" | #include <txdb.h> | ||||
#include "txmempool.h" | #include <txmempool.h> | ||||
#include "ui_interface.h" | #include <ui_interface.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilmoneystr.h" | #include <utilmoneystr.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
#include "validationinterface.h" | #include <validationinterface.h> | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
#include "wallet/rpcdump.h" | #include <wallet/rpcdump.h> | ||||
#endif | |||||
#include "walletinitinterface.h" | |||||
#include "warnings.h" | |||||
#include <cstdint> | |||||
#include <cstdio> | |||||
#include <memory> | |||||
#ifndef WIN32 | |||||
#include <csignal> | |||||
#endif | #endif | ||||
#include <walletinitinterface.h> | |||||
#include <warnings.h> | |||||
#include <boost/algorithm/string/classification.hpp> | #include <boost/algorithm/string/classification.hpp> | ||||
#include <boost/algorithm/string/replace.hpp> | #include <boost/algorithm/string/replace.hpp> | ||||
#include <boost/algorithm/string/split.hpp> | #include <boost/algorithm/string/split.hpp> | ||||
#include <boost/bind.hpp> | #include <boost/bind.hpp> | ||||
#include <boost/interprocess/sync/file_lock.hpp> | #include <boost/interprocess/sync/file_lock.hpp> | ||||
#include <boost/thread.hpp> | #include <boost/thread.hpp> | ||||
#if ENABLE_ZMQ | #if ENABLE_ZMQ | ||||
#include "zmq/zmqnotificationinterface.h" | #include <zmq/zmqnotificationinterface.h> | ||||
#endif | #endif | ||||
#ifndef WIN32 | |||||
#include <csignal> | |||||
#endif | |||||
#include <cstdint> | |||||
#include <cstdio> | |||||
#include <memory> | |||||
static const bool DEFAULT_PROXYRANDOMIZE = true; | static const bool DEFAULT_PROXYRANDOMIZE = true; | ||||
static const bool DEFAULT_REST_ENABLE = false; | static const bool DEFAULT_REST_ENABLE = false; | ||||
static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false; | static const bool DEFAULT_STOPAFTERBLOCKIMPORT = false; | ||||
std::unique_ptr<CConnman> g_connman; | std::unique_ptr<CConnman> g_connman; | ||||
std::unique_ptr<PeerLogicValidation> peerLogic; | std::unique_ptr<PeerLogicValidation> peerLogic; | ||||
#if !(ENABLE_WALLET) | #if !(ENABLE_WALLET) | ||||
▲ Show 20 Lines • Show All 2,298 Lines • Show Last 20 Lines |