You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{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",
771
+
{
772
+
{RPCResult::Type::NUM, "sizes", "Cumulative size of all transactions in the fee rate group (in vBytes)"},
773
+
{RPCResult::Type::NUM, "count", "Number of transactions in the fee rate group"},
774
+
{RPCResult::Type::NUM, "fees", "Cumulative fees of all transactions in the fee rate group (in " + CURRENCY_ATOM + ")"},
775
+
{RPCResult::Type::NUM, "from_feerate", "Group contains transactions with fee rates equal or greater than this value (in " + CURRENCY_ATOM + "/vB)"},
776
+
{RPCResult::Type::NUM, "to_feerate", /*optional=*/true, "Group contains transactions with fee rates equal or less than this value (in " + CURRENCY_ATOM + "/vB)"},
777
+
}},
778
+
{RPCResult::Type::ELISION, "", ""},
779
+
{RPCResult::Type::NUM, "total_fees", "Total available fees in mempool (in " + CURRENCY_ATOM + ")"},
Copy file name to clipboardExpand all lines: src/rpc/util.h
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
#include<univalue.h>
19
19
#include<util/check.h>
20
20
21
+
#include<algorithm>
21
22
#include<cstddef>
22
23
#include<cstdint>
23
24
#include<functional>
@@ -210,6 +211,7 @@ struct RPCArg {
210
211
211
212
const std::string m_names; //!< The name of the arg (can be empty for inner args, can contain multiple aliases separated by | for named request arguments)
212
213
const Type m_type;
214
+
const std::vector<Type> m_type_per_name;
213
215
const std::vector<RPCArg> m_inner; //!< Only used for arrays or dicts
214
216
const Fallback m_fallback;
215
217
const std::string m_description;
@@ -230,6 +232,24 @@ struct RPCArg {
230
232
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ && type != Type::OBJ_NAMED_PARAMS && type != Type::OBJ_USER_KEYS);
0 commit comments