]> git.bitcoin.ninja Git - rust-lightning/commit
Allow receiving less than the onion claims to pay
authorValentine Wallace <vwallace@protonmail.com>
Wed, 24 May 2023 15:53:05 +0000 (11:53 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 20 Jun 2023 21:57:38 +0000 (17:57 -0400)
commit9a3914dee6e3634045a75a273433921e79cdb4f7
treea0d7538d6b603cf3d335241b20253d2cf2b26534
parent27b99acd6442f5aafe33cf20d38045f2b942244a
Allow receiving less than the onion claims to pay

Useful for penultimate hops in routes to take an extra fee, if for example they
opened a JIT channel to the payee and want them to help bear the channel open
cost.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/payment_tests.rs