|
|
@ -10,6 +10,7 @@ |
|
|
|
#include "net.h" |
|
|
|
#include "net.h" |
|
|
|
#include "net_processing.h" |
|
|
|
#include "net_processing.h" |
|
|
|
#include "netbase.h" |
|
|
|
#include "netbase.h" |
|
|
|
|
|
|
|
#include "policy/policy.h" |
|
|
|
#include "protocol.h" |
|
|
|
#include "protocol.h" |
|
|
|
#include "sync.h" |
|
|
|
#include "sync.h" |
|
|
|
#include "timedata.h" |
|
|
|
#include "timedata.h" |
|
|
@ -417,6 +418,7 @@ UniValue getnetworkinfo(const JSONRPCRequest& request) |
|
|
|
" ,...\n" |
|
|
|
" ,...\n" |
|
|
|
" ],\n" |
|
|
|
" ],\n" |
|
|
|
" \"relayfee\": x.xxxxxxxx, (numeric) minimum relay fee for non-free transactions in " + CURRENCY_UNIT + "/kB\n" |
|
|
|
" \"relayfee\": x.xxxxxxxx, (numeric) minimum relay fee for non-free transactions in " + CURRENCY_UNIT + "/kB\n" |
|
|
|
|
|
|
|
" \"incrementalfee\": x.xxxxxxxx, (numeric) minimum fee increment for mempool limiting or BIP 125 replacement in " + CURRENCY_UNIT + "/kB\n" |
|
|
|
" \"localaddresses\": [ (array) list of local addresses\n" |
|
|
|
" \"localaddresses\": [ (array) list of local addresses\n" |
|
|
|
" {\n" |
|
|
|
" {\n" |
|
|
|
" \"address\": \"xxxx\", (string) network address\n" |
|
|
|
" \"address\": \"xxxx\", (string) network address\n" |
|
|
@ -447,6 +449,7 @@ UniValue getnetworkinfo(const JSONRPCRequest& request) |
|
|
|
} |
|
|
|
} |
|
|
|
obj.push_back(Pair("networks", GetNetworksInfo())); |
|
|
|
obj.push_back(Pair("networks", GetNetworksInfo())); |
|
|
|
obj.push_back(Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()))); |
|
|
|
obj.push_back(Pair("relayfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()))); |
|
|
|
|
|
|
|
obj.push_back(Pair("incrementalfee", ValueFromAmount(::incrementalRelayFee.GetFeePerK()))); |
|
|
|
UniValue localAddresses(UniValue::VARR); |
|
|
|
UniValue localAddresses(UniValue::VARR); |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(cs_mapLocalHost); |
|
|
|
LOCK(cs_mapLocalHost); |
|
|
|