]> git.bitcoin.ninja Git - rust-lightning/commit
Make all callsites to `get_channel_update_for_unicast` fallible
authorMatt Corallo <git@bluematt.me>
Fri, 4 Mar 2022 20:20:19 +0000 (20:20 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 27 Mar 2022 17:12:17 +0000 (17:12 +0000)
commit99b7219cfc6abd4f5d62c1062f5b4876cdf160da
treee489aa3a982e25971b11c90407ec6d188afc3ad0
parentdc4e62da5d3e6a9a65334737757b8c98e143be45
Make all callsites to `get_channel_update_for_unicast` fallible

This reduces unwraps in channelmanager by a good bit, providing
robustness for the upcoming 0conf changes which allow SCIDs to be
missing after a channel is in use, making
`get_channel_update_for_unicast` more fallible.

This also serves as a useful refactor for the next commit,
consolidating the channel_update creation sites which are changed
in the next commit.
lightning/src/ln/channelmanager.rs