| 2191 | } |
| 2192 | |
| 2193 | static bool changed_htlc(struct channel *channel, |
| 2194 | const struct changed_htlc *changed) |
| 2195 | { |
| 2196 | if (htlc_state_owner(changed->newstate) == LOCAL) |
| 2197 | return update_out_htlc(channel, changed->id, changed->newstate); |
| 2198 | else |
| 2199 | return update_in_htlc(channel, changed->id, changed->newstate); |
| 2200 | } |
| 2201 | |
| 2202 | /* FIXME: This should be a complete check, not just a sanity check. |
| 2203 | * Perhaps that means we need a cookie from the HSM? */ |
no test coverage detected