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

Function changed_htlc

lightningd/peer_htlcs.c:2149–2156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2147}
2148
2149static 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? */

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