aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Riard <dev@ariard.me>2022-06-20 12:32:52 -0400
committerAntoine Riard <dev@ariard.me>2022-07-06 20:57:31 -0400
commitaae66ab43d794bdfaa2dade91760cc55861c9693 (patch)
treea87ce7ed0cecd09fa0d943eb85c8d3e4a7e8290e
parent3e27e317270fdc2dd02794fea9da016387699636 (diff)
downloadbitcoin-aae66ab43d794bdfaa2dade91760cc55861c9693.tar.xz
Update getmempoolinfo RPC with `mempoolfullrbf`
-rw-r--r--src/rpc/mempool.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp
index 0d614d5ec0..c8208feaab 100644
--- a/src/rpc/mempool.cpp
+++ b/src/rpc/mempool.cpp
@@ -662,6 +662,7 @@ UniValue MempoolInfoToJSON(const CTxMemPool& pool)
ret.pushKV("minrelaytxfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()));
ret.pushKV("incrementalrelayfee", ValueFromAmount(::incrementalRelayFee.GetFeePerK()));
ret.pushKV("unbroadcastcount", uint64_t{pool.GetUnbroadcastTxs().size()});
+ ret.pushKV("fullrbf", pool.m_full_rbf);
return ret;
}
@@ -683,6 +684,7 @@ static RPCHelpMan getmempoolinfo()
{RPCResult::Type::STR_AMOUNT, "minrelaytxfee", "Current minimum relay fee for transactions"},
{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"},
+ {RPCResult::Type::BOOL, "fullrbf", "True if the mempool accepts RBF without replaceability signaling inspection"},
}},
RPCExamples{
HelpExampleCli("getmempoolinfo", "")