MCPcopy Create free account
hub / github.com/ElementsProject/lightning / changed_htlc

Function changed_htlc

lightningd/peer_htlcs.c:1878–1885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1876}
1877
1878static 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? */

Callers 3

peer_sending_commitsigFunction · 0.70
peer_got_commitsigFunction · 0.70
peer_got_revokeFunction · 0.70

Calls 3

htlc_state_ownerFunction · 0.85
update_out_htlcFunction · 0.85
update_in_htlcFunction · 0.85

Tested by

no test coverage detected