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

Function hsm_req

channeld/channeld.c:216–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216const u8 *hsm_req(const tal_t *ctx, const u8 *req TAKES)
217{
218 u8 *msg;
219
220 /* hsmd goes away at shutdown. That's OK. */
221 if (!wire_sync_write(HSM_FD, req))
222 exit(0);
223
224 msg = wire_sync_read(ctx, HSM_FD);
225 if (!msg)
226 exit(0);
227
228 return msg;
229}
230
231#if EXPERIMENTAL_FEATURES
232static void maybe_send_stfu(struct peer *peer)

Callers 7

penalty_tx_createFunction · 0.85
calc_commitsigsFunction · 0.85
get_per_commitment_pointFunction · 0.85
handle_peer_commit_sigFunction · 0.85

Calls 2

wire_sync_writeFunction · 0.50
wire_sync_readFunction · 0.50

Tested by

no test coverage detected