core-lightning/wallet
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
..
test lightningd: make "is peer connected" a tristate. 2022-07-18 20:50:04 -05:00
.gitignore reorganize .gitignore entries across subdirs. 2021-05-18 09:43:50 +09:30
db.c zeroconf: Add alias_remote and alias_local to channel and DB 2022-07-04 22:14:06 +02:00
db.h database: pull out database code into a new module 2022-03-05 15:03:34 +10:30
invoices.c delinvoice: allow desconly arg to only remove the description. 2022-03-29 10:04:16 +10:30
invoices.h delinvoice: allow desconly arg to only remove the description. 2022-03-29 10:04:16 +10:30
Makefile make-schema: don't include tools/fromschema.py in SHASUMS 2022-07-14 12:24:48 -05:00
reservation.c lightningd/json.h: remove. 2022-07-15 12:24:00 -05:00
txfilter.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
txfilter.h common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
wallet.c lightningd: remove 'connected' flag from channel structure. 2022-07-18 20:50:04 -05:00
wallet.h pay/sendpay: also store description in case bolt11 uses description_hash. 2022-04-04 20:26:04 +09:30
walletrpc.c lightningd: remove 'connected' flag from channel structure. 2022-07-18 20:50:04 -05:00
walletrpc.h daemons: remove unused functions or make static. 2021-12-06 10:05:39 +10:30