Document exactly our CLTV sanitization policy for final incoming HTLCs
[rust-lightning] / lightning / src / ln / channel.rs
index 374d74f6c18b578b8123e4f2344375164abff704..ffa65209710a6f6b3b51e14cf7f36e9a2ceb7bad 100644 (file)
@@ -1711,8 +1711,6 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
                        return Err(ChannelError::Close("Remote provided CLTV expiry in seconds instead of block height"));
                }
 
-               //TODO: Check msg.cltv_expiry further? Do this in channel manager?
-
                if self.channel_state & ChannelState::LocalShutdownSent as u32 != 0 {
                        if let PendingHTLCStatus::Forward(_) = pending_forward_state {
                                panic!("ChannelManager shouldn't be trying to add a forwardable HTLC after we've started closing");