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

Function hsm_per_commitment_point

openingd/dualopend.c:3978–3992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3976}
3977
3978static void hsm_per_commitment_point(u64 index, struct pubkey *point)
3979{
3980 struct secret *s;
3981 const u8 *msg;
3982
3983 msg = towire_hsmd_get_per_commitment_point(NULL, index);
3984 wire_sync_write(HSM_FD, take(msg));
3985 msg = wire_sync_read(tmpctx, HSM_FD);
3986
3987 if (!fromwire_hsmd_get_per_commitment_point_reply(tmpctx, msg,
3988 point, &s))
3989 status_failed(STATUS_FAIL_HSM_IO,
3990 "Bad per_commitment_point reply %s",
3991 tal_hex(tmpctx, msg));
3992}
3993
3994static void send_channel_ready(struct state *state)
3995{

Callers 1

send_channel_readyFunction · 0.85

Calls 6

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

Tested by

no test coverage detected