Skip to content

Commit 759de95

Browse files
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.
1 parent 4e4d018 commit 759de95

File tree

2 files changed

+216
-34
lines changed

2 files changed

+216
-34
lines changed

lightning/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Still missing tons of error-handling. See GitHub issues for suggested projects i
1111
"""
1212

1313
[features]
14+
allow_wallclock_use = []
1415
fuzztarget = ["bitcoin/fuzztarget", "regex"]
1516
# Internal test utilities exposed to other repo crates
1617
_test_utils = ["hex", "regex"]
@@ -37,3 +38,6 @@ features = ["bitcoinconsensus"]
3738
[dev-dependencies]
3839
hex = "0.3"
3940
regex = "0.1.80"
41+
42+
[package.metadata.docs.rs]
43+
features = ["allow_wallclock_use"] # When https://github.com/rust-lang/rust/issues/43781 complies with our MSVR, we can add nice banners in the docs for the methods behind this feature-gate.

0 commit comments

Comments
 (0)