Fix reachable unwrap on non-channel_type manual channel acceptance 2023-12-fuzzing-fixes-1
authorMatt Corallo <git@bluematt.me>
Sun, 24 Dec 2023 17:12:10 +0000 (17:12 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 8 Jan 2024 18:20:17 +0000 (18:20 +0000)
commit7f24e833fb97155844be2866ba2229104c12e020
treec77b4165c09a8f9eeb2a2f3163d82b87829d336a
parent3b6a361ae76a087ac10c2e59f9163188fd5c20e1
Fix reachable unwrap on non-channel_type manual channel acceptance

If we receive an `OpenChannel` message without a `channel_type`
with `manually_accept_inbound_channels` set, we will `unwrap()`
`None`.

This is uncommon these days as most nodes support `channel_type`,
but sadly is rather trivial for a peer to hit for those with manual
channel acceptance enabled.

Reported in and fixes #2804. Luckily, the updated
`full_stack_target` has no issue reaching this issue quickly.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs