| 1876 | } |
| 1877 | |
| 1878 | static bool changed_htlc(struct channel *channel, |
| 1879 | const struct changed_htlc *changed) |
| 1880 | { |
| 1881 | if (htlc_state_owner(changed->newstate) == LOCAL) |
| 1882 | return update_out_htlc(channel, changed->id, changed->newstate); |
| 1883 | else |
| 1884 | return update_in_htlc(channel, changed->id, changed->newstate); |
| 1885 | } |
| 1886 | |
| 1887 | /* FIXME: This should be a complete check, not just a sanity check. |
| 1888 | * Perhaps that means we need a cookie from the HSM? */ |
no test coverage detected