mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
28c3706f87
I crashed the HSMD, and it gave no output at all. That's because we were only reading the status fd when we were waiting for a reply. Fix this by using a separate request fd and status fd, which also means that hsm_sync_read() is no longer required. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
20 lines
523 B
C
20 lines
523 B
C
#ifndef LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_HSM_CONTROL_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <ccan/tal/tal.h>
|
|
#include <hsmd/capabilities.h>
|
|
#include <stdbool.h>
|
|
|
|
struct lightningd;
|
|
struct pubkey;
|
|
|
|
/* Ask HSM for a new fd for a subdaemon to use. */
|
|
int hsm_get_client_fd(struct lightningd *ld,
|
|
const struct pubkey *id,
|
|
u64 dbid,
|
|
int capabilities);
|
|
|
|
void hsm_init(struct lightningd *ld);
|
|
#endif /* LIGHTNING_LIGHTNINGD_HSM_CONTROL_H */
|