Skip to content

Commit 612d1fb

Browse files
Update Watch docs to disallow dup channel outpoints
on watch_channel
1 parent e06484b commit 612d1fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ pub trait Watch<ChannelSigner: Sign> {
203203
/// with any spends of outputs returned by [`get_outputs_to_watch`]. In practice, this means
204204
/// calling [`block_connected`] and [`block_disconnected`] on the monitor.
205205
///
206+
/// Note: this interface MUST error with `ChannelMonitorUpdateErr::PermanentFailure` if
207+
/// the given `funding_txo` has previously been registered via `watch_channel`.
208+
///
206209
/// [`get_outputs_to_watch`]: channelmonitor::ChannelMonitor::get_outputs_to_watch
207210
/// [`block_connected`]: channelmonitor::ChannelMonitor::block_connected
208211
/// [`block_disconnected`]: channelmonitor::ChannelMonitor::block_disconnected

0 commit comments

Comments
 (0)