Sanitize outgoing HTLC cltv_value
[rust-lightning] / lightning / src / ln / channel.rs
index efc3a151c50fa898f03a2420844661fd204806a6..b1a970d7c4b80a101757dcb7e552e20182d3789a 100644 (file)
@@ -3557,8 +3557,6 @@ impl<ChanSigner: ChannelKeys> Channel<ChanSigner> {
                        return Err(ChannelError::Ignore("Cannot send value that would put us over their reserve value"));
                }
 
-               //TODO: Check cltv_expiry? Do this in channel manager?
-
                // Now update local state:
                if (self.channel_state & (ChannelState::AwaitingRemoteRevoke as u32)) == (ChannelState::AwaitingRemoteRevoke as u32) {
                        self.holding_cell_htlc_updates.push(HTLCUpdateAwaitingACK::AddHTLC {