]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor incoming HTLC accept checks out from Channel::update_add_htlc
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 8 Mar 2024 08:19:40 +0000 (00:19 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Mar 2024 21:28:04 +0000 (14:28 -0700)
commit2edc5b2865560fcafdf2b95faa04b6ca8d522f6f
tree31b573db06fde0007a95f608ea53df47cecb838e
parentcc7faa3bb427f92fd09c06d0632096cee81178e1
Refactor incoming HTLC accept checks out from Channel::update_add_htlc

In the future, we plan to completely 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 the incoming HTLC
acceptance checks in the batched variant.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs