Wake the background processor if an async monitor update completes
authorMatt Corallo <git@bluematt.me>
Thu, 9 Mar 2023 03:11:13 +0000 (03:11 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 3 Apr 2023 16:49:54 +0000 (16:49 +0000)
commit6890e4334254a22b39b7402a0bbf0b75748eb907
treea8548116bd9e3240663e657fbcb766cedbb4d846
parent3acf7e2c9d4896ddfb48e883023cb76f1c4de9a0
Wake the background processor if an async monitor update completes

If the `ChainMonitor` gets an async monitor update completion, this
means the `ChannelManager` needs to be polled for event processing.
Here we wake it using the new multi-`Future`-await `Sleeper`, or
the existing `select` block in the async BP.

Fixes #2052.
lightning-background-processor/src/lib.rs
lightning/src/chain/chainmonitor.rs