Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | class NodeImpl : public Node { | ||||
void setNetworkActive(bool active) override { | void setNetworkActive(bool active) override { | ||||
if (g_connman) { | if (g_connman) { | ||||
g_connman->SetNetworkActive(active); | g_connman->SetNetworkActive(active); | ||||
} | } | ||||
} | } | ||||
bool getNetworkActive() override { | bool getNetworkActive() override { | ||||
return g_connman && g_connman->GetNetworkActive(); | return g_connman && g_connman->GetNetworkActive(); | ||||
} | } | ||||
Amount getRequiredFee(unsigned int tx_bytes) override { | |||||
CHECK_WALLET(return GetRequiredFee(tx_bytes)); | |||||
} | |||||
Amount getMinimumFee(unsigned int tx_bytes, | |||||
const CCoinControl &coin_control) override { | |||||
Amount result; | |||||
CHECK_WALLET(result = | |||||
GetMinimumFee(tx_bytes, coin_control, g_mempool)); | |||||
return result; | |||||
} | |||||
Amount getMaxTxFee() override { return ::maxTxFee; } | Amount getMaxTxFee() override { return ::maxTxFee; } | ||||
CFeeRate estimateSmartFee() override { return g_mempool.estimateFee(); } | CFeeRate estimateSmartFee() override { return g_mempool.estimateFee(); } | ||||
CFeeRate getDustRelayFee() override { return ::dustRelayFee; } | CFeeRate getDustRelayFee() override { return ::dustRelayFee; } | ||||
UniValue executeRpc(Config &config, const std::string &command, | UniValue executeRpc(Config &config, const std::string &command, | ||||
const UniValue ¶ms, | const UniValue ¶ms, | ||||
const std::string &uri) override { | const std::string &uri) override { | ||||
JSONRPCRequest req; | JSONRPCRequest req; | ||||
req.params = params; | req.params = params; | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |