mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-29 16:24:22 +00:00
Merge pull request #6877
10e2eae rpc: Add maxmempool and effective min fee to getmempoolinfo (Wladimir J. van der Laan)
This commit is contained in:
commit
26f5b34e88
@ -773,6 +773,9 @@ UniValue mempoolInfoToJSON()
|
|||||||
ret.push_back(Pair("size", (int64_t) mempool.size()));
|
ret.push_back(Pair("size", (int64_t) mempool.size()));
|
||||||
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize()));
|
ret.push_back(Pair("bytes", (int64_t) mempool.GetTotalTxSize()));
|
||||||
ret.push_back(Pair("usage", (int64_t) mempool.DynamicMemoryUsage()));
|
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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user