mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
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.
This commit is contained in:
parent
39094d4472
commit
34dd48c585
1 changed files with 4 additions and 1 deletions
|
@ -113,7 +113,10 @@ impl MonitorUpdateId {
|
|||
/// [`ChainMonitor::channel_monitor_updated`] must be called once for *each* update which occurs.
|
||||
///
|
||||
/// If at some point no further progress can be made towards persisting a pending update, the node
|
||||
/// should simply shut down.
|
||||
/// should simply shut down. Until then, the background task should either loop indefinitely, or
|
||||
/// persistence should be regularly retried with [`ChainMonitor::list_pending_monitor_updates`]
|
||||
/// and [`ChainMonitor::get_monitor`] (note that if a full monitor is persisted all pending
|
||||
/// monitor updates may be marked completed).
|
||||
///
|
||||
/// # Using remote watchtowers
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue