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

Function make_revocation_msg

channeld/channeld.c:1447–1456  ·  view source on GitHub ↗

revoke_index == current index - 1 (usually; not for retransmission) */

Source from the content-addressed store, hash-verified

1445
1446/* revoke_index == current index - 1 (usually; not for retransmission) */
1447static u8 *make_revocation_msg(const struct peer *peer, u64 revoke_index,
1448 struct pubkey *point)
1449{
1450 struct secret old_commit_secret;
1451
1452 get_per_commitment_point(revoke_index+2, point, &old_commit_secret);
1453
1454 return towire_revoke_and_ack(peer, &peer->channel_id, &old_commit_secret,
1455 point);
1456}
1457
1458static u8 *make_revocation_msg_from_secret(const struct peer *peer,
1459 u64 revoke_index,

Callers 1

resend_revokeFunction · 0.85

Calls 1

get_per_commitment_pointFunction · 0.85

Tested by

no test coverage detected