Skip to content

Commit aae66ab

Browse files
committed
Update getmempoolinfo RPC with mempoolfullrbf
1 parent 3e27e31 commit aae66ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/mempool.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ UniValue MempoolInfoToJSON(const CTxMemPool& pool)
662662
ret.pushKV("minrelaytxfee", ValueFromAmount(::minRelayTxFee.GetFeePerK()));
663663
ret.pushKV("incrementalrelayfee", ValueFromAmount(::incrementalRelayFee.GetFeePerK()));
664664
ret.pushKV("unbroadcastcount", uint64_t{pool.GetUnbroadcastTxs().size()});
665+
ret.pushKV("fullrbf", pool.m_full_rbf);
665666
return ret;
666667
}
667668

@@ -683,6 +684,7 @@ static RPCHelpMan getmempoolinfo()
683684
{RPCResult::Type::STR_AMOUNT, "minrelaytxfee", "Current minimum relay fee for transactions"},
684685
{RPCResult::Type::NUM, "incrementalrelayfee", "minimum fee rate increment for mempool limiting or BIP 125 replacement in " + CURRENCY_UNIT + "/kvB"},
685686
{RPCResult::Type::NUM, "unbroadcastcount", "Current number of transactions that haven't passed initial broadcast yet"},
687+
{RPCResult::Type::BOOL, "fullrbf", "True if the mempool accepts RBF without replaceability signaling inspection"},
686688
}},
687689
RPCExamples{
688690
HelpExampleCli("getmempoolinfo", "")

0 commit comments

Comments
 (0)