| 261 | } |
| 262 | |
| 263 | static enum htlc_state fromwire_htlc_state(const u8 **cursor, size_t *max) |
| 264 | { |
| 265 | enum htlc_state hstate = fromwire_u8(cursor, max); |
| 266 | if (hstate >= HTLC_STATE_INVALID) { |
| 267 | hstate = HTLC_STATE_INVALID; |
| 268 | fromwire_fail(cursor, max); |
| 269 | } |
| 270 | return hstate; |
| 271 | } |
| 272 | |
| 273 | void fromwire_changed_htlc(const u8 **cursor, size_t *max, |
| 274 | struct changed_htlc *changed) |
no test coverage detected