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
This is needed so that it can be used by RPCResult
Also,
* rename NAMED_ARG to NONE for generalization.
* change RPCArg constructors to initialize the members by moving values
/** Returns, given services flags, a list of humanly readable (known) network services */
102
102
UniValue GetServicesNames(ServiceFlags services);
103
103
104
+
/**
105
+
* Serializing JSON objects depends on the outer type. Only arrays and
106
+
* dictionaries can be nested in json. The top-level outer type is "NONE".
107
+
*/
108
+
enumclassOuterType {
109
+
ARR,
110
+
OBJ,
111
+
NONE, // Only set on first recursion
112
+
};
113
+
104
114
structRPCArg {
105
115
enumclassType {
106
116
OBJ,
@@ -140,37 +150,37 @@ struct RPCArg {
140
150
const std::vector<std::string> m_type_str; //!< Should be empty unless it is supposed to override the auto-generated type strings. Vector length is either 0 or 2, m_type_str.at(0) will override the type of the value in a key-value pair, m_type_str.at(1) will override the type in the argument description.
0 commit comments