Add PersistenceNotifier to ChannelManager
authorValentine Wallace <vwallace@protonmail.com>
Thu, 19 Nov 2020 17:53:16 +0000 (12:53 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 16 Feb 2021 20:39:52 +0000 (15:39 -0500)
commit5a0bab9200f72ec1ff51fe9baa119af071f81459
tree883619aa2f750f4e76049e444124ae7ccc3ff890
parent90ea66cf44a72275f4937a243b23a0cf51f2765f
Add PersistenceNotifier to ChannelManager

This will allow the ChannelManager to signal when it has new
updates to persist, and adds a way for ChannelManager persisters
to be notified when they should re-persist the ChannelManager
to disk/backups.

Feature-gate the wait_timeout function because the core
lightning crate shouldn't depend on wallclock time unless
users opt into it.
lightning/Cargo.toml
lightning/src/ln/channelmanager.rs