| 941 | } |
| 942 | |
| 943 | static void hsm_get_per_commitment_point(struct pubkey *per_commitment_point) |
| 944 | { |
| 945 | u8 *msg = towire_hsmd_get_per_commitment_point(NULL, commit_num); |
| 946 | struct secret *unused; |
| 947 | |
| 948 | if (!wire_sync_write(HSM_FD, take(msg))) |
| 949 | status_failed(STATUS_FAIL_HSM_IO, "Writing sign_htlc_tx to hsm"); |
| 950 | msg = wire_sync_read(tmpctx, HSM_FD); |
| 951 | if (!msg |
| 952 | || !fromwire_hsmd_get_per_commitment_point_reply(tmpctx, msg, |
| 953 | per_commitment_point, |
| 954 | &unused)) |
| 955 | status_failed(STATUS_FAIL_HSM_IO, |
| 956 | "Reading hsm_get_per_commitment_point_reply: %s", |
| 957 | tal_hex(tmpctx, msg)); |
| 958 | } |
| 959 | |
| 960 | static struct tracked_output * |
| 961 | new_tracked_output(struct tracked_output ***outs, |
no test coverage detected