Skip to content
Browse files

Merge pull request #6877

10e2eae rpc: Add maxmempool and effective min fee to getmempoolinfo (Wladimir J. van der Laan)
  • Loading branch information
laanwj committed Oct 26, 2015
2 parents 5242bb3 + 10e2eae commit 26f5b34e88387a6aabbb886e16532ddbe7dcca92
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/rpcblockchain.cpp
@@ -773,6 +773,9 @@ UniValue mempoolInfoToJSON()
ret.push_back(Pair("size", (int64_t) mempool.size()));
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize()));
ret.push_back(Pair("usage", (int64_t) mempool.DynamicMemoryUsage()));
size_t maxmempool = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000;
ret.push_back(Pair("maxmempool", (int64_t) maxmempool));
ret.push_back(Pair("mempoolminfee", ValueFromAmount(mempool.GetMinFee(maxmempool).GetFeePerK())));

return ret;

0 comments on commit 26f5b34

Please sign in to comment.
You can’t perform that action at this time.