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

Function channel_rcvd_commit

channeld/full_channel.c:1515–1529  ·  view source on GitHub ↗

FIXME: We can actually merge these two... */

Source from the content-addressed store, hash-verified

1513
1514/* FIXME: We can actually merge these two... */
1515bool channel_rcvd_commit(struct channel *channel, const struct htlc ***htlcs)
1516{
1517 int change;
1518 const enum htlc_state states[] = { RCVD_ADD_REVOCATION,
1519 RCVD_REMOVE_HTLC,
1520 RCVD_ADD_HTLC,
1521 RCVD_REMOVE_REVOCATION };
1522
1523 status_debug("Received commit");
1524 change = change_htlcs(channel, LOCAL, states, ARRAY_SIZE(states),
1525 htlcs, "rcvd_commit");
1526 if (!change)
1527 return false;
1528 return true;
1529}
1530
1531bool channel_sending_revoke_and_ack(struct channel *channel)
1532{

Callers 7

handle_peer_commit_sigFunction · 0.85
include_htlcsFunction · 0.85
send_and_fulfill_htlcFunction · 0.85
update_feerateFunction · 0.85
exchange_commitsFunction · 0.85
fuzz_exchange_commitsFunction · 0.85

Calls 1

change_htlcsFunction · 0.85

Tested by 3

include_htlcsFunction · 0.68
send_and_fulfill_htlcFunction · 0.68
update_feerateFunction · 0.68