From: Valentine Wallace Date: Fri, 17 Sep 2021 18:50:44 +0000 (-0400) Subject: Update Watch docs to disallow dup channel outpoints X-Git-Tag: v0.0.102~16^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=612d1fb120117cec9db7ee7ca23d6d90894891fd;p=rust-lightning Update Watch docs to disallow dup channel outpoints on watch_channel --- diff --git a/lightning/src/chain/mod.rs b/lightning/src/chain/mod.rs index cec094592..718990c45 100644 --- a/lightning/src/chain/mod.rs +++ b/lightning/src/chain/mod.rs @@ -203,6 +203,9 @@ pub trait Watch { /// with any spends of outputs returned by [`get_outputs_to_watch`]. In practice, this means /// calling [`block_connected`] and [`block_disconnected`] on the monitor. /// + /// Note: this interface MUST error with `ChannelMonitorUpdateErr::PermanentFailure` if + /// the given `funding_txo` has previously been registered via `watch_channel`. + /// /// [`get_outputs_to_watch`]: channelmonitor::ChannelMonitor::get_outputs_to_watch /// [`block_connected`]: channelmonitor::ChannelMonitor::block_connected /// [`block_disconnected`]: channelmonitor::ChannelMonitor::block_disconnected