core-lightning/lightningd/test
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
..
Makefile common: clean up json routine locations. 2022-07-15 12:24:00 -05:00
run-find_my_abspath.c common: clean up json routine locations. 2022-07-15 12:24:00 -05:00
run-invoice-select-inchan.c lightningd: make "is peer connected" a tristate. 2022-07-18 20:50:04 -05:00
run-jsonrpc.c lightningd/json.h: remove. 2022-07-15 12:24:00 -05:00
run-log-pruning.c common/json_stream.c: provide explicit json_add_primitive_fmt and json_add_str_fmt routines. 2022-07-15 12:24:00 -05:00
run-shuffle_fds.c common: clean up json routine locations. 2022-07-15 12:24:00 -05:00