gossipd: don't need hsm fd any more.
gossipd no longer makes gossip messages, and hasn't since v24.02, so it doesn't actually need to talk to the hsm daemon. Also, various comments were out of date, so fix those too. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
d065d3692d
commit
4c8d656f77
@@ -302,14 +302,11 @@ static void gossipd_init_done(struct subd *gossipd,
|
||||
void gossip_init(struct lightningd *ld, int connectd_fd)
|
||||
{
|
||||
u8 *msg;
|
||||
int hsmfd;
|
||||
void *ret;
|
||||
|
||||
hsmfd = hsm_get_global_fd(ld, HSM_PERM_ECDH|HSM_PERM_SIGN_GOSSIP);
|
||||
|
||||
ld->gossip = new_global_subd(ld, "lightning_gossipd",
|
||||
gossipd_wire_name, gossip_msg,
|
||||
take(&hsmfd), take(&connectd_fd), NULL);
|
||||
take(&connectd_fd), NULL);
|
||||
if (!ld->gossip)
|
||||
err(1, "Could not subdaemon gossip");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user