MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / mempoolInfoToJSON

Function mempoolInfoToJSON

src/rpcblockchain.cpp:816–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816UniValue mempoolInfoToJSON()
817{
818 UniValue ret(UniValue::VOBJ);
819 ret.push_back(Pair("size", (int64_t) mempool.size()));
820 ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize()));
821 ret.push_back(Pair("usage", (int64_t) mempool.DynamicMemoryUsage()));
822
823 return ret;
824}
825
826UniValue getmempoolinfo(const UniValue& params, bool fHelp)
827{

Callers 2

getmempoolinfoFunction · 0.85
rest_mempool_infoFunction · 0.85

Calls 5

PairFunction · 0.85
GetTotalTxSizeMethod · 0.80
push_backMethod · 0.45
sizeMethod · 0.45
DynamicMemoryUsageMethod · 0.45

Tested by

no test coverage detected