| 1466 | } |
| 1467 | |
| 1468 | static 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 | |
| 1491 | static UniValue preciousblock(const JSONRPCRequest& request) |
| 1492 | { |
nothing calls this directly
no test coverage detected