| 586 | } |
| 587 | |
| 588 | static void hsm_get_per_commitment_point(struct pubkey *per_commitment_point) |
| 589 | { |
| 590 | u8 *msg = towire_hsmd_get_per_commitment_point(NULL, commit_num); |
| 591 | struct secret *unused; |
| 592 | |
| 593 | if (!wire_sync_write(HSM_FD, take(msg))) |
| 594 | status_failed(STATUS_FAIL_HSM_IO, "Writing sign_htlc_tx to hsm"); |
| 595 | msg = wire_sync_read(tmpctx, HSM_FD); |
| 596 | if (!msg |
| 597 | || !fromwire_hsmd_get_per_commitment_point_reply(tmpctx, msg, |
| 598 | per_commitment_point, |
| 599 | &unused)) |
| 600 | status_failed(STATUS_FAIL_HSM_IO, |
| 601 | "Reading hsm_get_per_commitment_point_reply: %s", |
| 602 | tal_hex(tmpctx, msg)); |
| 603 | } |
| 604 | |
| 605 | static struct tracked_output * |
| 606 | new_tracked_output(struct tracked_output ***outs, |
no test coverage detected