| 3976 | } |
| 3977 | |
| 3978 | static void hsm_per_commitment_point(u64 index, struct pubkey *point) |
| 3979 | { |
| 3980 | struct secret *s; |
| 3981 | const u8 *msg; |
| 3982 | |
| 3983 | msg = towire_hsmd_get_per_commitment_point(NULL, index); |
| 3984 | wire_sync_write(HSM_FD, take(msg)); |
| 3985 | msg = wire_sync_read(tmpctx, HSM_FD); |
| 3986 | |
| 3987 | if (!fromwire_hsmd_get_per_commitment_point_reply(tmpctx, msg, |
| 3988 | point, &s)) |
| 3989 | status_failed(STATUS_FAIL_HSM_IO, |
| 3990 | "Bad per_commitment_point reply %s", |
| 3991 | tal_hex(tmpctx, msg)); |
| 3992 | } |
| 3993 | |
| 3994 | static void send_channel_ready(struct state *state) |
| 3995 | { |
no test coverage detected