Files
lightning/lightningd
Rusty Russell eff53495db lightningd: make "is peer connected" a tristate.
First, connectd tells us the peer has connected, and we call the connected hook,
and if it says it's fine, we are actually connected and we fire off notifications.

Of course, we could be disconnected while in the connected hook, and that would
mean we tell people about a connection which is no longer current.

Make this clear with a tristate: if we're not marked disconnected by
the time the hooks finish, we're good.  It also gives us a cleaner
"connect" command return when we connected but disconnected before
processing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-07-18 20:50:04 -05:00
..
2021-10-15 12:09:36 +02:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-03-10 09:40:09 +10:30
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-07-15 12:24:00 -05:00
2022-03-30 06:27:52 +10:30
2021-10-15 12:09:36 +02:00