Skip to content

Commit 40f27a5

Browse files
committed
RPC/mempool: Skip result type checks for fee_histogram in getmempoolinfo
fee_histogram contains both dynamic-named group objects as well as a numeric total_fees, which the check cannot handle Long-term, the result is expected to change to avoid this, so just skip it for now
1 parent 446ba48 commit 40f27a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ static RPCHelpMan getmempoolinfo()
762762
{RPCResult::Type::NUM, "incrementalrelayfee", "minimum fee rate increment for mempool limiting or replacement in " + CURRENCY_UNIT + "/kvB"},
763763
{RPCResult::Type::NUM, "unbroadcastcount", "Current number of transactions that haven't passed initial broadcast yet"},
764764
{RPCResult::Type::BOOL, "fullrbf", "True if the mempool accepts RBF without replaceability signaling inspection"},
765-
{RPCResult::Type::OBJ, "fee_histogram", /*optional=*/true, "",
765+
{RPCResult::Type::OBJ_DYN, "fee_histogram", /*optional=*/true, "",
766766
{
767767
{RPCResult::Type::OBJ, "<fee_rate_group>", "Fee rate group named by its lower bound (in " + CURRENCY_ATOM + "/vB), identical to the \"from_feerate\" field below",
768768
{

0 commit comments

Comments
 (0)