Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 1,436 Lines • ▼ Show 20 Lines | UniValue getchaintips(const Config &config, const JSONRPCRequest &request) { | ||||
return res; | return res; | ||||
} | } | ||||
UniValue mempoolInfoToJSON() { | UniValue mempoolInfoToJSON() { | ||||
UniValue ret(UniValue::VOBJ); | UniValue ret(UniValue::VOBJ); | ||||
ret.pushKV("size", (int64_t)g_mempool.size()); | ret.pushKV("size", (int64_t)g_mempool.size()); | ||||
ret.pushKV("bytes", (int64_t)g_mempool.GetTotalTxSize()); | ret.pushKV("bytes", (int64_t)g_mempool.GetTotalTxSize()); | ||||
ret.pushKV("usage", (int64_t)g_mempool.DynamicMemoryUsage()); | ret.pushKV("usage", (int64_t)g_mempool.DynamicMemoryUsage()); | ||||
size_t maxmempool = | size_t maxmempool = gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE); | ||||
gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; | |||||
ret.pushKV("maxmempool", (int64_t)maxmempool); | ret.pushKV("maxmempool", (int64_t)maxmempool); | ||||
ret.pushKV("mempoolminfee", | ret.pushKV("mempoolminfee", | ||||
ValueFromAmount(g_mempool.GetMinFee(maxmempool).GetFeePerK())); | ValueFromAmount(g_mempool.GetMinFee(maxmempool).GetFeePerK())); | ||||
return ret; | return ret; | ||||
} | } | ||||
UniValue getmempoolinfo(const Config &config, const JSONRPCRequest &request) { | UniValue getmempoolinfo(const Config &config, const JSONRPCRequest &request) { | ||||
▲ Show 20 Lines • Show All 402 Lines • Show Last 20 Lines |