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>
Fri, 19 Feb 2021 20:00:43 +0000 (15:00 -0500)
commit12c735ab3af8f09dc402f8147594afcc4569be61
tree76f90b93272a259fe9f8e084ad4e9f2957f3e542
parenta88dfbfcca8dcecc3639c3293a312697a3556c24
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