Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.h
Show All 17 Lines | |||||
#include <string> | #include <string> | ||||
#include <tuple> | #include <tuple> | ||||
#include <vector> | #include <vector> | ||||
class CCoinControl; | class CCoinControl; | ||||
class CFeeRate; | class CFeeRate; | ||||
struct CNodeStateStats; | struct CNodeStateStats; | ||||
struct CNodeStats; | struct CNodeStats; | ||||
class Coin; | |||||
class Config; | class Config; | ||||
class HTTPRPCRequestProcessor; | class HTTPRPCRequestProcessor; | ||||
class proxyType; | class proxyType; | ||||
class RPCServer; | class RPCServer; | ||||
class RPCTimerInterface; | class RPCTimerInterface; | ||||
class UniValue; | class UniValue; | ||||
namespace interfaces { | namespace interfaces { | ||||
▲ Show 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | public: | ||||
virtual std::vector<std::string> listRpcCommands() = 0; | virtual std::vector<std::string> listRpcCommands() = 0; | ||||
//! Set RPC timer interface if unset. | //! Set RPC timer interface if unset. | ||||
virtual void rpcSetTimerInterfaceIfUnset(RPCTimerInterface *iface) = 0; | virtual void rpcSetTimerInterfaceIfUnset(RPCTimerInterface *iface) = 0; | ||||
//! Unset RPC timer interface. | //! Unset RPC timer interface. | ||||
virtual void rpcUnsetTimerInterface(RPCTimerInterface *iface) = 0; | virtual void rpcUnsetTimerInterface(RPCTimerInterface *iface) = 0; | ||||
//! Get unspent outputs associated with a transaction. | |||||
virtual bool getUnspentOutput(const COutPoint &output, Coin &coin) = 0; | |||||
//! Return interfaces for accessing wallets (if any). | //! Return interfaces for accessing wallets (if any). | ||||
virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0; | virtual std::vector<std::unique_ptr<Wallet>> getWallets() = 0; | ||||
//! Register handler for init messages. | //! Register handler for init messages. | ||||
using InitMessageFn = std::function<void(const std::string &message)>; | using InitMessageFn = std::function<void(const std::string &message)>; | ||||
virtual std::unique_ptr<Handler> handleInitMessage(InitMessageFn fn) = 0; | virtual std::unique_ptr<Handler> handleInitMessage(InitMessageFn fn) = 0; | ||||
//! Register handler for message box messages. | //! Register handler for message box messages. | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |