mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
gossipd: hand a gossip_store_fd to all subdaemons.
This will let them read from the gossip store directly. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -304,9 +304,9 @@ static unsigned connectd_msg(struct subd *connectd, const u8 *msg, const int *fd
|
||||
break;
|
||||
|
||||
case WIRE_CONNECT_PEER_CONNECTED:
|
||||
if (tal_count(fds) != 2)
|
||||
return 2;
|
||||
peer_connected(connectd->ld, msg, fds[0], fds[1]);
|
||||
if (tal_count(fds) != 3)
|
||||
return 3;
|
||||
peer_connected(connectd->ld, msg, fds[0], fds[1], fds[2]);
|
||||
break;
|
||||
|
||||
case WIRE_CONNECTCTL_CONNECT_FAILED:
|
||||
|
||||
Reference in New Issue
Block a user