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:
Rusty Russell
2025-12-09 12:54:12 +10:30
committed by Christian Decker
parent d065d3692d
commit 4c8d656f77
3 changed files with 12 additions and 20 deletions

View File

@@ -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");