| 128 | } |
| 129 | |
| 130 | static void RegisterSetJson(const std::string& key, const std::string& rawJson) |
| 131 | { |
| 132 | UniValue val; |
| 133 | if (!val.read(rawJson)) { |
| 134 | std::string strErr = "Cannot parse JSON for key " + key; |
| 135 | throw std::runtime_error(strErr); |
| 136 | } |
| 137 | |
| 138 | registers[key] = val; |
| 139 | } |
| 140 | |
| 141 | static void RegisterSet(const std::string& strInput) |
| 142 | { |
no test coverage detected