MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / getmempoolinfo

Function getmempoolinfo

src/rpc/blockchain.cpp:1468–1489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1466}
1467
1468static UniValue getmempoolinfo(const JSONRPCRequest& request)
1469{
1470 if (request.fHelp || request.params.size() != 0)
1471 throw std::runtime_error(
1472 "getmempoolinfo\n"
1473 "\nReturns details on the active state of the TX memory pool.\n"
1474 "\nResult:\n"
1475 "{\n"
1476 " \"size\": xxxxx, (numeric) Current tx count\n"
1477 " \"bytes\": xxxxx, (numeric) Sum of all virtual transaction sizes as defined in BIP 141. Differs from actual serialized size because witness data is discounted\n"
1478 " \"usage\": xxxxx, (numeric) Total memory usage for the mempool\n"
1479 " \"maxmempool\": xxxxx, (numeric) Maximum memory usage for the mempool\n"
1480 " \"mempoolminfee\": xxxxx (numeric) Minimum fee rate in " + CURRENCY_UNIT + "/kB for tx to be accepted. Is the maximum of minrelaytxfee and minimum mempool fee\n"
1481 " \"minrelaytxfee\": xxxxx (numeric) Current minimum relay fee for transactions\n"
1482 "}\n"
1483 "\nExamples:\n"
1484 + HelpExampleCli("getmempoolinfo", "")
1485 + HelpExampleRpc("getmempoolinfo", "")
1486 );
1487
1488 return mempoolInfoToJSON();
1489}
1490
1491static UniValue preciousblock(const JSONRPCRequest& request)
1492{

Callers

nothing calls this directly

Calls 4

HelpExampleCliFunction · 0.85
HelpExampleRpcFunction · 0.85
mempoolInfoToJSONFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected