| 2121 | } |
| 2122 | |
| 2123 | static bool changed_htlc(struct channel *channel, |
| 2124 | const struct changed_htlc *changed) |
| 2125 | { |
| 2126 | if (htlc_state_owner(changed->newstate) == LOCAL) |
| 2127 | return update_out_htlc(channel, changed->id, changed->newstate); |
| 2128 | else |
| 2129 | return update_in_htlc(channel, changed->id, changed->newstate); |
| 2130 | } |
| 2131 | |
| 2132 | /* FIXME: This should be a complete check, not just a sanity check. |
| 2133 | * Perhaps that means we need a cookie from the HSM? */ |
no test coverage detected