| 141 | } |
| 142 | |
| 143 | bool fromwire_bool(const u8 **cursor, size_t *max) |
| 144 | { |
| 145 | u8 ret; |
| 146 | |
| 147 | if (!fromwire(cursor, max, &ret, sizeof(ret))) |
| 148 | return false; |
| 149 | if (ret != 0 && ret != 1) |
| 150 | fromwire_fail(cursor, max); |
| 151 | return ret; |
| 152 | } |
| 153 | |
| 154 | enum jsonrpc_errcode fromwire_jsonrpc_errcode(const u8 **cursor, size_t *max) |
| 155 | { |
no test coverage detected