MCPcopy Create free account
hub / github.com/ElementsProject/lightning / hsm_get_per_commitment_point

Function hsm_get_per_commitment_point

onchaind/onchaind.c:588–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588static 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
605static struct tracked_output *
606new_tracked_output(struct tracked_output ***outs,

Callers 1

handle_our_unilateralFunction · 0.85

Calls 6

tal_hexFunction · 0.85
wire_sync_writeFunction · 0.50
status_failedFunction · 0.50
wire_sync_readFunction · 0.50

Tested by

no test coverage detected