Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/net.cpp
Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() != 0) | ||||
" ],\n" | " ],\n" | ||||
" \"relayfee\": x.xxxxxxxx, (numeric) minimum " | " \"relayfee\": x.xxxxxxxx, (numeric) minimum " | ||||
"relay fee for non-free transactions in " + | "relay fee for non-free transactions in " + | ||||
CURRENCY_UNIT + | CURRENCY_UNIT + | ||||
"/kB\n" | "/kB\n" | ||||
" \"excessutxocharge\": x.xxxxxxxx, (numeric) minimum " | " \"excessutxocharge\": x.xxxxxxxx, (numeric) minimum " | ||||
"charge for excess utxos in " + | "charge for excess utxos in " + | ||||
CURRENCY_UNIT + "\n" | CURRENCY_UNIT + "\n" | ||||
" \"incrementalfee\": x.xxxxxxxx, " | |||||
"(numeric) minimum fee increment for mempool " | |||||
"limiting or BIP 125 replacement in " + | |||||
CURRENCY_UNIT + "/kB\n" | |||||
" \"localaddresses\": [ " | " \"localaddresses\": [ " | ||||
"(array) list of local addresses\n" | "(array) list of local addresses\n" | ||||
" {\n" | " {\n" | ||||
" \"address\": \"xxxx\", " | " \"address\": \"xxxx\", " | ||||
"(string) network address\n" | "(string) network address\n" | ||||
" \"port\": xxx, " | " \"port\": xxx, " | ||||
"(numeric) network port\n" | "(numeric) network port\n" | ||||
" \"score\": xxx " | " \"score\": xxx " | ||||
Show All 24 Lines | if (g_connman) { | ||||
Pair("connections", | Pair("connections", | ||||
(int)g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL))); | (int)g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL))); | ||||
} | } | ||||
obj.push_back(Pair("networks", GetNetworksInfo())); | obj.push_back(Pair("networks", GetNetworksInfo())); | ||||
obj.push_back( | obj.push_back( | ||||
Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()))); | Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()))); | ||||
obj.push_back(Pair("excessutxocharge", | obj.push_back(Pair("excessutxocharge", | ||||
ValueFromAmount(config.GetExcessUTXOCharge()))); | ValueFromAmount(config.GetExcessUTXOCharge()))); | ||||
obj.push_back(Pair("incrementalfee", | |||||
ValueFromAmount(::incrementalRelayFee.GetFeePerK()))); | |||||
UniValue localAddresses(UniValue::VARR); | UniValue localAddresses(UniValue::VARR); | ||||
{ | { | ||||
LOCK(cs_mapLocalHost); | LOCK(cs_mapLocalHost); | ||||
for (const std::pair<CNetAddr, LocalServiceInfo> &item : mapLocalHost) { | for (const std::pair<CNetAddr, LocalServiceInfo> &item : mapLocalHost) { | ||||
UniValue rec(UniValue::VOBJ); | UniValue rec(UniValue::VOBJ); | ||||
rec.push_back(Pair("address", item.first.ToString())); | rec.push_back(Pair("address", item.first.ToString())); | ||||
rec.push_back(Pair("port", item.second.nPort)); | rec.push_back(Pair("port", item.second.nPort)); | ||||
rec.push_back(Pair("score", item.second.nScore)); | rec.push_back(Pair("score", item.second.nScore)); | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |