]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid `unwrap`ing in `get_announcement_sigs`
authorElias Rohrer <dev@tnull.de>
Sat, 17 Jun 2023 11:17:20 +0000 (13:17 +0200)
committerElias Rohrer <dev@tnull.de>
Fri, 21 Jul 2023 07:54:28 +0000 (09:54 +0200)
commitadcac97ebc5ba6a1a74684bc59c7710b9918bcff
treea19fc740899cd08f283a0cb2612f5bbcbb628f36
parent82fdf0f62d983dfdcbd28f9037f94d70c7d98814
Avoid `unwrap`ing in `get_announcement_sigs`

While this is currently not reachable, it's still cleaner to
avoid the `unwrap` and return `None` if `short_channel_id` hasn't been
set yet.
lightning/src/ln/channel.rs