Skip to content

Commit 12c735a

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 a88dfbf commit 12c735a

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"]
@@ -38,3 +39,6 @@ features = ["bitcoinconsensus"]
3839
[dev-dependencies]
3940
hex = "0.3"
4041
regex = "0.1.80"
42+
43+
[package.metadata.docs.rs]
44+
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)