From 612d1fb120117cec9db7ee7ca23d6d90894891fd Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Fri, 17 Sep 2021 14:50:44 -0400 Subject: [PATCH] Update Watch docs to disallow dup channel outpoints on watch_channel --- lightning/src/chain/mod.rs | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5