revoke_index == current index - 1 (usually; not for retransmission) */
| 1445 | |
| 1446 | /* revoke_index == current index - 1 (usually; not for retransmission) */ |
| 1447 | static 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 | |
| 1458 | static u8 *make_revocation_msg_from_secret(const struct peer *peer, |
| 1459 | u64 revoke_index, |
no test coverage detected