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

Function changed_htlc

lightningd/peer_htlcs.c:2123–2130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2121}
2122
2123static 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? */

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