| 166 | } |
| 167 | |
| 168 | bool fromwire_bool(const u8 **cursor, size_t *max) |
| 169 | { |
| 170 | u8 ret; |
| 171 | |
| 172 | if (!fromwire(cursor, max, &ret, sizeof(ret))) |
| 173 | return false; |
| 174 | if (ret != 0 && ret != 1) |
| 175 | fromwire_fail(cursor, max); |
| 176 | return ret; |
| 177 | } |
| 178 | |
| 179 | enum jsonrpc_errcode fromwire_jsonrpc_errcode(const u8 **cursor, size_t *max) |
| 180 | { |
no test coverage detected