Skip to content

Commit 34dd48c

Browse files
committed
Add more details about async persistence completion/backgrounding
This clarifies somewhat that async persistence should run indefinitely or keep trying via polling, and that either is acceptable.
1 parent 39094d4 commit 34dd48c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/chain/chainmonitor.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ impl MonitorUpdateId {
113113
/// [`ChainMonitor::channel_monitor_updated`] must be called once for *each* update which occurs.
114114
///
115115
/// If at some point no further progress can be made towards persisting a pending update, the node
116-
/// should simply shut down.
116+
/// should simply shut down. Until then, the background task should either loop indefinitely, or
117+
/// persistence should be regularly retried with [`ChainMonitor::list_pending_monitor_updates`]
118+
/// and [`ChainMonitor::get_monitor`] (note that if a full monitor is persisted all pending
119+
/// monitor updates may be marked completed).
117120
///
118121
/// # Using remote watchtowers
119122
///

0 commit comments

Comments
 (0)