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

Function hsm_req

channeld/channeld.c:208–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208const u8 *hsm_req(const tal_t *ctx, const u8 *req TAKES)
209{
210 u8 *msg;
211
212 /* hsmd goes away at shutdown. That's OK. */
213 if (!wire_sync_write(HSM_FD, req))
214 exit(0);
215
216 msg = wire_sync_read(ctx, HSM_FD);
217 if (!msg)
218 exit(0);
219
220 return msg;
221}
222
223/* We're in STFU mode now: must not send messages. */
224static bool is_stfu_active(const struct peer *peer)

Callers 10

penalty_tx_createFunction · 0.85
lock_signer_outpointFunction · 0.85
calc_commitsigsFunction · 0.85
get_per_commitment_pointFunction · 0.85
revoke_commitmentFunction · 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