]> git.bitcoin.ninja Git - rust-lightning/commit
Return error when failing to construc onion messages
authorElias Rohrer <ero@tnull.de>
Wed, 5 Apr 2023 15:08:49 +0000 (17:08 +0200)
committerElias Rohrer <ero@tnull.de>
Thu, 11 May 2023 16:23:47 +0000 (18:23 +0200)
commitde6649cb25d385a7b0cd9e191a710af6363d6550
treef3b0b3972585b4deb714403dee72d797045602a4
parent71af4a2d1553950adadcb3c4e69446f4d276a62c
Return error when failing to construc onion messages

Previously, we would panic when failing to construct onion messages in
certain circumstances. Here we opt to always rather error out and don't
panic if something goes wrong during OM packet construction.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/messenger.rs