diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-10-23 08:31:27 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-10-26 09:59:07 +0100 |
commit | 10e2eae35c65b7551618a24e15cf068ce215beef (patch) | |
tree | cc2683a07683849a2f5687c622da74bdd6cf1022 /src | |
parent | f2c869aef2e717ba61b9335f198322f6a4d1a12d (diff) |
rpc: Add maxmempool and effective min fee to getmempoolinfo
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcblockchain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 545ac12890..0a267e1a16 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -772,6 +772,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; } |