diff options
author | MacroFake <falke.marco@gmail.com> | 2022-06-21 17:56:07 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-06-21 18:03:29 +0200 |
commit | fafee78188c3de5f6245ec769429822ca4b98c63 (patch) | |
tree | 1758c8cf409f88b1414a1d6ad0ed4fdd04723f3c /src | |
parent | b1788072657d17070fc9adcc2fa1201a8c8acdf8 (diff) | |
download | bitcoin-fafee78188c3de5f6245ec769429822ca4b98c63.tar.xz |
rpc: Return incrementalrelayfee in getmempoolinfo
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/mempool.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 97ec95a166..4ef53cac9a 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -661,6 +661,7 @@ UniValue MempoolInfoToJSON(const CTxMemPool& pool) ret.pushKV("maxmempool", maxmempool); ret.pushKV("mempoolminfee", ValueFromAmount(std::max(pool.GetMinFee(maxmempool), ::minRelayTxFee).GetFeePerK())); ret.pushKV("minrelaytxfee", ValueFromAmount(::minRelayTxFee.GetFeePerK())); + ret.pushKV("incrementalrelayfee", ValueFromAmount(::incrementalRelayFee.GetFeePerK())); ret.pushKV("unbroadcastcount", uint64_t{pool.GetUnbroadcastTxs().size()}); return ret; } @@ -668,7 +669,7 @@ UniValue MempoolInfoToJSON(const CTxMemPool& pool) static RPCHelpMan getmempoolinfo() { return RPCHelpMan{"getmempoolinfo", - "\nReturns details on the active state of the TX memory pool.\n", + "Returns details on the active state of the TX memory pool.", {}, RPCResult{ RPCResult::Type::OBJ, "", "", @@ -681,7 +682,8 @@ static RPCHelpMan getmempoolinfo() {RPCResult::Type::NUM, "maxmempool", "Maximum memory usage for the mempool"}, {RPCResult::Type::STR_AMOUNT, "mempoolminfee", "Minimum fee rate in " + CURRENCY_UNIT + "/kvB for tx to be accepted. Is the maximum of minrelaytxfee and minimum mempool fee"}, {RPCResult::Type::STR_AMOUNT, "minrelaytxfee", "Current minimum relay fee for transactions"}, - {RPCResult::Type::NUM, "unbroadcastcount", "Current number of transactions that haven't passed initial broadcast yet"} + {RPCResult::Type::NUM, "incrementalrelayfee", "minimum fee rate increment for mempool limiting or BIP 125 replacement in " + CURRENCY_UNIT + "/kvB"}, + {RPCResult::Type::NUM, "unbroadcastcount", "Current number of transactions that haven't passed initial broadcast yet"}, }}, RPCExamples{ HelpExampleCli("getmempoolinfo", "") |