core-lightning/openingd
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
..
Makefile openingd: return to master for more gossip when negotiation fails. 2017-12-17 02:44:20 +00:00
opening_wire.csv openingd: return to master for more gossip when negotiation fails. 2017-12-17 02:44:20 +00:00
opening.c gossipd: hand back peer, don't hand a new peer. 2017-12-17 02:44:20 +00:00