| 302 | } |
| 303 | |
| 304 | static enum htlc_state fromwire_htlc_state(const u8 **cursor, size_t *max) |
| 305 | { |
| 306 | enum htlc_state hstate = fromwire_u8(cursor, max); |
| 307 | if (hstate >= HTLC_STATE_INVALID) { |
| 308 | hstate = HTLC_STATE_INVALID; |
| 309 | fromwire_fail(cursor, max); |
| 310 | } |
| 311 | return hstate; |
| 312 | } |
| 313 | |
| 314 | void fromwire_changed_htlc(const u8 **cursor, size_t *max, |
| 315 | struct changed_htlc *changed) |
no test coverage detected