| 556 | } |
| 557 | |
| 558 | static void hsm_get_per_commitment_point(struct pubkey *per_commitment_point) |
| 559 | { |
| 560 | u8 *msg = towire_hsmd_get_per_commitment_point(NULL, commit_num); |
| 561 | struct secret *unused; |
| 562 | |
| 563 | if (!wire_sync_write(HSM_FD, take(msg))) |
| 564 | status_failed(STATUS_FAIL_HSM_IO, "Writing sign_htlc_tx to hsm"); |
| 565 | msg = wire_sync_read(tmpctx, HSM_FD); |
| 566 | if (!msg |
| 567 | || !fromwire_hsmd_get_per_commitment_point_reply(tmpctx, msg, |
| 568 | per_commitment_point, |
| 569 | &unused)) |
| 570 | status_failed(STATUS_FAIL_HSM_IO, |
| 571 | "Reading hsm_get_per_commitment_point_reply: %s", |
| 572 | tal_hex(tmpctx, msg)); |
| 573 | } |
| 574 | |
| 575 | static struct tracked_output * |
| 576 | new_tracked_output(struct tracked_output ***outs, |
no test coverage detected