core-lightning/gossipd
Rusty Russell 67aa95c194 gossipd: hand back peer, don't hand a new peer.
All peers come from gossipd, and maintain an fd to talk to it.  Sometimes
we hand the peer back, but to avoid a race, we always recreated it.

The race was that a daemon closed the gossip_fd, which made gossipd
forget the peer, then master handed the peer back to gossipd.  We stop
the race by never closing the gossipfd, but hand it back to gossipd
for closing.

Now gossipd has to accept two fds, but the handling of peers is far
clearer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-12-17 02:44:20 +00:00
..
test routing: Make routing_state aware of its own ID 2017-12-17 02:44:20 +00:00
broadcast.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
broadcast.h Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
gossip_wire.csv gossipd: hand back peer, don't hand a new peer. 2017-12-17 02:44:20 +00:00
gossip.c gossipd: hand back peer, don't hand a new peer. 2017-12-17 02:44:20 +00:00
handshake.c gossip: Remove HSM_FD from handshake 2017-12-17 02:44:20 +00:00
handshake.h ipaddr: rename to wireaddr. 2017-10-26 21:01:09 +00:00
Makefile Makefile: make gossipd objects depend correctly on its own headers. 2017-12-17 02:44:20 +00:00
routing.c gossipd: don't hand length to route code, it's implied. 2017-12-17 02:44:20 +00:00
routing.h gossipd: don't hand length to route code, it's implied. 2017-12-17 02:44:20 +00:00