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
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