]> git.bitcoin.ninja Git - rust-lightning/commitdiff
-f warnign channel-closed event
authorAntoine Riard <dev@ariard.me>
Mon, 6 Sep 2021 18:42:33 +0000 (14:42 -0400)
committerAntoine Riard <dev@ariard.me>
Fri, 17 Sep 2021 22:41:19 +0000 (18:41 -0400)
lightning/src/util/events.rs

index 43182c1ddafea7e8cc390d27e808629ca6443f53..675b839111a1a0bce9edaad1231f388a6f434a1b 100644 (file)
@@ -232,6 +232,10 @@ pub enum Event {
                claim_from_onchain_tx: bool,
        },
        /// Used to indicate that a channel with the given `channel_id` is in the process of closure.
+       /// Note that if you try to force-close multiple times a channel through
+       /// [`ChannelManager::force_close_channel`] before receiving the corresponding monitor
+       /// event for the broadcast of the commitment transaction, multiple `ChannelClosed` events
+       /// can be generated.
        ChannelClosed  {
                /// The channel_id which has been barren from further off-chain updates but
                /// funding output might still be not resolved yet.