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

Function update_per_commit_point

lightningd/peer_htlcs.c:2267–2273  ·  view source on GitHub ↗

Shuffle them over, forgetting the ancient one. */

Source from the content-addressed store, hash-verified

2265
2266/* Shuffle them over, forgetting the ancient one. */
2267void update_per_commit_point(struct channel *channel,
2268 const struct pubkey *per_commitment_point)
2269{
2270 struct channel_info *ci = &channel->channel_info;
2271 ci->old_remote_per_commit = ci->remote_per_commit;
2272 ci->remote_per_commit = *per_commitment_point;
2273}
2274
2275struct commitment_revocation_payload {
2276 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