| 2147 | } |
| 2148 | |
| 2149 | static bool changed_htlc(struct channel *channel, |
| 2150 | const struct changed_htlc *changed) |
| 2151 | { |
| 2152 | if (htlc_state_owner(changed->newstate) == LOCAL) |
| 2153 | return update_out_htlc(channel, changed->id, changed->newstate); |
| 2154 | else |
| 2155 | return update_in_htlc(channel, changed->id, changed->newstate); |
| 2156 | } |
| 2157 | |
| 2158 | /* FIXME: This should be a complete check, not just a sanity check. |
| 2159 | * Perhaps that means we need a cookie from the HSM? */ |
no test coverage detected