| 443 | } |
| 444 | |
| 445 | void parseJsonIntValueIntoVector(json_spirit::mValue const& _json, vector<int>& _out) |
| 446 | { |
| 447 | if (_json.type() == UniValue_type) |
| 448 | { |
| 449 | for (auto const& val: _json.get_array()) |
| 450 | _out.push_back(val.get_int()); |
| 451 | } |
| 452 | else |
| 453 | _out.push_back(_json.get_int()); |
| 454 | } |
| 455 | |
| 456 | template<class T> |
| 457 | bool inArray(vector<T> const& _array, const T _val) |
no test coverage detected