Skip to content

Commit 446ba48

Browse files
committed
Bugfix: RPC/blockchain: Correct type of "to_feerate" result in getmempoolinfo fee histogram
1 parent 68f7f13 commit 446ba48

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
@@ -770,7 +770,7 @@ static RPCHelpMan getmempoolinfo()
770770
{RPCResult::Type::NUM, "count", "Number of transactions in the fee rate group"},
771771
{RPCResult::Type::NUM, "fees", "Cumulative fees of all transactions in the fee rate group (in " + CURRENCY_ATOM + ")"},
772772
{RPCResult::Type::NUM, "from_feerate", "Group contains transactions with fee rates equal or greater than this value (in " + CURRENCY_ATOM + "/vB)"},
773-
{RPCResult::Type::ANY, "to_feerate", "Group contains transactions with fee rates equal or less than this value (in " + CURRENCY_ATOM + "/vB)"},
773+
{RPCResult::Type::NUM, "to_feerate", /*optional=*/true, "Group contains transactions with fee rates equal or less than this value (in " + CURRENCY_ATOM + "/vB)"},
774774
}},
775775
{RPCResult::Type::ELISION, "", ""},
776776
{RPCResult::Type::NUM, "total_fees", "Total available fees in mempool (in " + CURRENCY_ATOM + ")"},

0 commit comments

Comments
 (0)