| 214 | } |
| 215 | |
| 216 | const 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 |
| 232 | static void maybe_send_stfu(struct peer *peer) |
no test coverage detected