mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Add comment noting that ChannelMonitor events are serialized
This commit is contained in:
parent
0ebf70d6a2
commit
9ff6f29074
1 changed files with 5 additions and 0 deletions
|
@ -783,6 +783,11 @@ impl<R: ::std::io::Read> Readable<R> for ChannelMonitorUpdateStep {
|
|||
///
|
||||
/// You MUST ensure that no ChannelMonitors for a given channel anywhere contain out-of-date
|
||||
/// information and are actively monitoring the chain.
|
||||
///
|
||||
/// Pending Events or updated HTLCs which have not yet been read out by
|
||||
/// get_and_clear_pending_htlcs_updated or get_and_clear_pending_events are serialized to disk and
|
||||
/// reloaded at deserialize-time. Thus, you must ensure that, when handling events, all events
|
||||
/// gotten are fully handled before re-serializing the new state.
|
||||
pub struct ChannelMonitor<ChanSigner: ChannelKeys> {
|
||||
latest_update_id: u64,
|
||||
commitment_transaction_number_obscure_factor: u64,
|
||||
|
|
Loading…
Add table
Reference in a new issue