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

Function update_per_commit_point

lightningd/peer_htlcs.c:2548–2554  ·  view source on GitHub ↗

Shuffle them over, forgetting the ancient one. */

Source from the content-addressed store, hash-verified

2546
2547/* Shuffle them over, forgetting the ancient one. */
2548void update_per_commit_point(struct channel *channel,
2549 const struct pubkey *per_commitment_point)
2550{
2551 struct channel_info *ci = &channel->channel_info;
2552 ci->old_remote_per_commit = ci->remote_per_commit;
2553 ci->remote_per_commit = *per_commitment_point;
2554}
2555
2556struct commitment_revocation_payload {
2557 struct bitcoin_txid commitment_txid;

Callers 2

peer_got_revokeFunction · 0.85
channel_on_channel_readyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected