Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/node.cpp
Show First 20 Lines • Show All 206 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 getMinimumFee(unsigned int tx_bytes) override { | |||||
Amount result; | |||||
CHECK_WALLET(result = GetMinimumFee(tx_bytes, g_mempool)); | |||||
return result; | |||||
} | |||||
Amount getMinimumFee(unsigned int tx_bytes, | Amount getMinimumFee(unsigned int tx_bytes, | ||||
const CCoinControl &coin_control) override { | const CCoinControl &coin_control) override { | ||||
Amount result; | Amount result; | ||||
CHECK_WALLET(result = | CHECK_WALLET(result = | ||||
GetMinimumFee(tx_bytes, g_mempool, coin_control)); | GetMinimumFee(tx_bytes, g_mempool, coin_control)); | ||||
return result; | return result; | ||||
} | } | ||||
Amount getMaxTxFee() override { return ::maxTxFee; } | Amount getMaxTxFee() override { return ::maxTxFee; } | ||||
CFeeRate estimateSmartFee() override { return g_mempool.estimateFee(); } | |||||
CFeeRate getDustRelayFee() override { return ::dustRelayFee; } | CFeeRate getDustRelayFee() override { return ::dustRelayFee; } | ||||
CFeeRate getFallbackFee() override { | |||||
CHECK_WALLET(return CWallet::fallbackFee); | |||||
} | |||||
CFeeRate getPayTxFee() override { CHECK_WALLET(return ::payTxFee); } | CFeeRate getPayTxFee() override { CHECK_WALLET(return ::payTxFee); } | ||||
void setPayTxFee(CFeeRate rate) override { | |||||
CHECK_WALLET(::payTxFee = rate); | |||||
} | |||||
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; | ||||
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 86 Lines • Show Last 20 Lines |