Don't FC when a `channel_update` has a bogus `htlc_minimum_msat`
[rust-lightning] / lightning / src / ln / channel.rs
index d14a868539f68f173fcb79e481e2056aa3f8f090..55e56be2a79377079377591f14ad1fef33311f17 100644 (file)
@@ -5538,9 +5538,6 @@ impl<SP: Deref> Channel<SP> where
        }
 
        pub fn channel_update(&mut self, msg: &msgs::ChannelUpdate) -> Result<(), ChannelError> {
-               if msg.contents.htlc_minimum_msat >= self.context.channel_value_satoshis * 1000 {
-                       return Err(ChannelError::Close("Minimum htlc value is greater than channel value".to_string()));
-               }
                self.context.counterparty_forwarding_info = Some(CounterpartyForwardingInfo {
                        fee_base_msat: msg.contents.fee_base_msat,
                        fee_proportional_millionths: msg.contents.fee_proportional_millionths,