Check UpdateAddHTLC::skimmed_fee_msat on receive
authorValentine Wallace <vwallace@protonmail.com>
Wed, 24 May 2023 23:21:21 +0000 (19:21 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 20 Jun 2023 21:57:38 +0000 (17:57 -0400)
commit0d94d9f9b756b9a08e3547b300fad32e8771f648
tree2d4436a4af466a17f57cf69383aad64195ae74b7
parent4cee62233cad5cc80e29208e7e7f633324a4abaf
Check UpdateAddHTLC::skimmed_fee_msat on receive

Make sure the penultimate hop took the amount of fee that they claimed to take.
Without checking this TLV, we're heavily relying on the receiving wallet code
to correctly implement logic to calculate that that the fee is as expected.
lightning/src/ln/channelmanager.rs