Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/net.cpp
| Show First 20 Lines • Show All 814 Lines • ▼ Show 20 Lines | return RPCHelpMan{ | ||||
| obj.pushKV("connections_out", node.connman->GetNodeCount( | obj.pushKV("connections_out", node.connman->GetNodeCount( | ||||
| ConnectionDirection::Out)); | ConnectionDirection::Out)); | ||||
| } | } | ||||
| obj.pushKV("networks", GetNetworksInfo()); | obj.pushKV("networks", GetNetworksInfo()); | ||||
| if (node.mempool) { | if (node.mempool) { | ||||
| // This field can be deprecated, to be replaced by the | // This field can be deprecated, to be replaced by the | ||||
| // getmempoolinfo fields | // getmempoolinfo fields | ||||
| obj.pushKV("relayfee", | obj.pushKV("relayfee", | ||||
| node.mempool->m_min_relay_feerate.GetFeePerK()); | node.mempool->m_opts.min_relay_feerate.GetFeePerK()); | ||||
| } | } | ||||
| UniValue localAddresses(UniValue::VARR); | UniValue localAddresses(UniValue::VARR); | ||||
| { | { | ||||
| LOCK(g_maplocalhost_mutex); | LOCK(g_maplocalhost_mutex); | ||||
| for (const std::pair<const CNetAddr, LocalServiceInfo> &item : | for (const std::pair<const CNetAddr, LocalServiceInfo> &item : | ||||
| mapLocalHost) { | mapLocalHost) { | ||||
| UniValue rec(UniValue::VOBJ); | UniValue rec(UniValue::VOBJ); | ||||
| rec.pushKV("address", item.first.ToStringAddr()); | rec.pushKV("address", item.first.ToStringAddr()); | ||||
| ▲ Show 20 Lines • Show All 450 Lines • Show Last 20 Lines | |||||