]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor HTLCFailureMsg generation out from decode_update_add_htlc_onion
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 24 Jan 2024 00:55:40 +0000 (16:55 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Mar 2024 21:28:02 +0000 (14:28 -0700)
commit0073e492d915630b2521fbebc7f3cac0db9a80e6
treed535c0818f63abcae591f023537f49922d45772a
parent3f940d35ea7558f8b0d3a14082ce23f02c25bfcd
Refactor HTLCFailureMsg generation out from decode_update_add_htlc_onion

In the future, we plan to complete remove `decode_update_add_htlc_onion`
and replace it with a batched variant. This refactor, while improving
readability in its current form, does not feature any functional changes
and allows us to reuse most of the logic in the batched variant.
lightning/src/ln/channelmanager.rs