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
@@ -19,6 +19,7 @@
19
19
#include<univalue.h>
20
20
#include<util/check.h>
21
21
22
+
#include<algorithm>
22
23
#include<cstddef>
23
24
#include<cstdint>
24
25
#include<functional>
@@ -202,6 +203,7 @@ struct RPCArg {
202
203
203
204
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)
204
205
const Type m_type;
206
+
const std::vector<Type> m_type_per_name;
205
207
const std::vector<RPCArg> m_inner; //!< Only used for arrays or dicts
206
208
const Fallback m_fallback;
207
209
const std::string m_description;
@@ -222,6 +224,24 @@ struct RPCArg {
222
224
CHECK_NONFATAL(type != Type::ARR && type != Type::OBJ && type != Type::OBJ_NAMED_PARAMS && type != Type::OBJ_USER_KEYS);
0 commit comments