Don't FC when a `channel_update` has a bogus `htlc_minimum_msat`
authorMatt Corallo <git@bluematt.me>
Thu, 28 Sep 2023 00:46:31 +0000 (00:46 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 28 Sep 2023 00:47:43 +0000 (00:47 +0000)
commit9123d6d41bb9f2f3094c38344c23278df84c7ee2
tree8404d568a8f90b997279b49e3ba2a5189e863ed5
parent7b4fb9da886a58b32ad6a286eb7a5cd9c1ed01cf
Don't FC when a `channel_update` has a bogus `htlc_minimum_msat`

If a peer sends us a `channel_update` for our own channel with an
`htlc_minimum_msat` which is more than the channel's amount, that's
dumb, but there's no reason to force-close the channel. We don't
even use the field.

Here we simply drop the unnecessary check.
lightning/src/ln/channel.rs