Make `InMemorySigner` parameter-fetching utilities return `Option`s
authorMatt Corallo <git@bluematt.me>
Tue, 3 Oct 2023 04:12:28 +0000 (04:12 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 3 Oct 2023 04:25:03 +0000 (04:25 +0000)
commit65569ed5d68b67efabd37bfc593268a66bb1fd55
tree16f48cd030c1e902291c09157a40e386af46e1a7
parent6a55dcce8380297c28dc70c37ef543bd18f62617
Make `InMemorySigner` parameter-fetching utilities return `Option`s

In the previous commit we fixed a bug where we were spuriously
(indirectly) `unwrap`ing the `channel_parameters` in
`InMemorySigner`. Here we make such bugs much less likely in the
future by having the utilities which do the `unwrap`ing internally
return `Option`s instead.

This makes the `unwrap`s clear at the callsite.
lightning/src/sign/mod.rs
lightning/src/util/test_channel_signer.rs