Refactor outgoing HTLC checks out from decode_update_add_htlc_onion
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 24 Jan 2024 01:08:17 +0000 (17:08 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Mar 2024 21:28:02 +0000 (14:28 -0700)
commitcc1651b0bebee6fe201b587e6771b10550a98823
tree85afb8d93c0cff847932f0c93b62c55a49e89c12
parent0073e492d915630b2521fbebc7f3cac0db9a80e6
Refactor outgoing HTLC checks 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