Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | public: | ||||
if (m_context->connman) { | if (m_context->connman) { | ||||
m_context->connman->SetNetworkActive(active); | m_context->connman->SetNetworkActive(active); | ||||
} | } | ||||
} | } | ||||
bool getNetworkActive() override { | bool getNetworkActive() override { | ||||
return m_context->connman && m_context->connman->GetNetworkActive(); | return m_context->connman && m_context->connman->GetNetworkActive(); | ||||
} | } | ||||
CFeeRate getDustRelayFee() override { return ::dustRelayFee; } | CFeeRate getDustRelayFee() override { return ::dustRelayFee; } | ||||
UniValue executeRpc(Config &config, const std::string &command, | UniValue executeRpc(const Config &config, const std::string &command, | ||||
const UniValue ¶ms, | const UniValue ¶ms, | ||||
const std::string &uri) override { | const std::string &uri) override { | ||||
JSONRPCRequest req(m_context_ref); | JSONRPCRequest req(m_context_ref); | ||||
req.params = params; | req.params = params; | ||||
req.strMethod = command; | req.strMethod = command; | ||||
req.URI = uri; | req.URI = uri; | ||||
return ::tableRPC.execute(config, req); | return ::tableRPC.execute(config, req); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |