lightningd: disable topology timers on shutdown.

Not necessary yet, but it will be once shutdown starts waiting for
plugins to respond: we don't want these to try to access the bcli
plugin once it's freed.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-09-01 14:05:15 +09:30
committed by Christian Decker
parent 395bf96d15
commit 89c3541c83
5 changed files with 43 additions and 14 deletions

View File

@@ -32,6 +32,9 @@ struct bitcoind {
/* Ignore results, we're shutting down. */
bool shutdown;
/* Timer if we're waiting for it to warm up. */
struct oneshot *checkchain_timer;
struct list_head pending_getfilteredblock;
/* Map each method to a plugin, so we can have multiple plugins