Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
// Copyright (c) 2018 The Bitcoin Core developers | // Copyright (c) 2018 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_INTERFACES_NODE_H | #ifndef BITCOIN_INTERFACES_NODE_H | ||||
#define BITCOIN_INTERFACES_NODE_H | #define BITCOIN_INTERFACES_NODE_H | ||||
#include <amount.h> // For Amount | #include <amount.h> // For Amount | ||||
#include <net.h> // For CConnman::NumConnections | #include <net.h> // For CConnman::NumConnections | ||||
#include <net_types.h> // For banmap_t | #include <net_types.h> // For banmap_t | ||||
#include <netaddress.h> // For Network | #include <netaddress.h> // For Network | ||||
#include <support/allocators/secure.h> // For SecureString | #include <support/allocators/secure.h> // For SecureString | ||||
#include <util/translation.h> | |||||
#include <cstddef> | #include <cstddef> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <functional> | #include <functional> | ||||
#include <memory> | #include <memory> | ||||
#include <string> | #include <string> | ||||
#include <tuple> | #include <tuple> | ||||
#include <vector> | #include <vector> | ||||
Show All 27 Lines | public: | ||||
//! Init logging. | //! Init logging. | ||||
virtual void initLogging() = 0; | virtual void initLogging() = 0; | ||||
//! Init parameter interaction. | //! Init parameter interaction. | ||||
virtual void initParameterInteraction() = 0; | virtual void initParameterInteraction() = 0; | ||||
//! Get warnings. | //! Get warnings. | ||||
virtual std::string getWarnings() = 0; | virtual bilingual_str getWarnings() = 0; | ||||
//! Initialize app dependencies. | //! Initialize app dependencies. | ||||
virtual bool baseInitialize(Config &config) = 0; | virtual bool baseInitialize(Config &config) = 0; | ||||
//! Start node. | //! Start node. | ||||
virtual bool | virtual bool | ||||
appInitMain(Config &config, RPCServer &rpcServer, | appInitMain(Config &config, RPCServer &rpcServer, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor) = 0; | HTTPRPCRequestProcessor &httpRPCRequestProcessor) = 0; | ||||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |