Changeset View
Changeset View
Standalone View
Standalone View
src/node/interfaces.cpp
| Show First 20 Lines • Show All 302 Lines • ▼ Show 20 Lines | public: | ||||
| } | } | ||||
| 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 { | CFeeRate getDustRelayFee() override { | ||||
| if (!m_context->mempool) { | if (!m_context->mempool) { | ||||
| return CFeeRate{DUST_RELAY_TX_FEE}; | return CFeeRate{DUST_RELAY_TX_FEE}; | ||||
| } | } | ||||
| return m_context->mempool->m_dust_relay_feerate; | return m_context->mempool->m_opts.dust_relay_feerate; | ||||
| } | } | ||||
| UniValue executeRpc(const 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; | JSONRPCRequest req; | ||||
| req.context = m_context; | req.context = m_context; | ||||
| req.params = params; | req.params = params; | ||||
| req.strMethod = command; | req.strMethod = command; | ||||
| ▲ Show 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | public: | ||||
| return {}; | return {}; | ||||
| } | } | ||||
| return m_node.mempool->estimateFee(); | return m_node.mempool->estimateFee(); | ||||
| } | } | ||||
| CFeeRate relayMinFee() override { | CFeeRate relayMinFee() override { | ||||
| if (!m_node.mempool) { | if (!m_node.mempool) { | ||||
| return CFeeRate{DEFAULT_MIN_RELAY_TX_FEE_PER_KB}; | return CFeeRate{DEFAULT_MIN_RELAY_TX_FEE_PER_KB}; | ||||
| } | } | ||||
| return m_node.mempool->m_min_relay_feerate; | return m_node.mempool->m_opts.min_relay_feerate; | ||||
| } | } | ||||
| CFeeRate relayDustFee() override { | CFeeRate relayDustFee() override { | ||||
| if (!m_node.mempool) { | if (!m_node.mempool) { | ||||
| return CFeeRate{DUST_RELAY_TX_FEE}; | return CFeeRate{DUST_RELAY_TX_FEE}; | ||||
| } | } | ||||
| return m_node.mempool->m_dust_relay_feerate; | return m_node.mempool->m_opts.dust_relay_feerate; | ||||
| } | } | ||||
| bool havePruned() override { | bool havePruned() override { | ||||
| LOCK(cs_main); | LOCK(cs_main); | ||||
| return m_node.chainman->m_blockman.m_have_pruned; | return m_node.chainman->m_blockman.m_have_pruned; | ||||
| } | } | ||||
| bool isReadyToBroadcast() override { | bool isReadyToBroadcast() override { | ||||
| return !chainman().m_blockman.LoadingBlocks() && | return !chainman().m_blockman.LoadingBlocks() && | ||||
| !isInitialBlockDownload(); | !isInitialBlockDownload(); | ||||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||