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

Function hsm_get_per_commitment_point

onchaind/onchaind.c:943–958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943static 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
960static struct tracked_output *
961new_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