]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #2319 from valentinewallace/2023-05-forward-less-than-onion
authorElias Rohrer <dev@tnull.de>
Wed, 21 Jun 2023 07:25:07 +0000 (09:25 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Jun 2023 07:25:07 +0000 (09:25 +0200)
Allow forwarding less than the amount in the onion

1  2 
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs

index fa4c86cd0ddea84b6970536455737517756edf52,3fe17475fff490357283b1198e694ff104973f0d..f4c4af7e90ff02bf5cf59c22994a7728ded4fcf5
@@@ -1056,8 -1080,9 +1078,9 @@@ impl MaybeReadable for Event 
                                        let mut payment_preimage = None;
                                        let mut payment_secret = None;
                                        let mut amount_msat = 0;
+                                       let mut counterparty_skimmed_fee_msat_opt = None;
                                        let mut receiver_node_id = None;
 -                                      let mut _user_payment_id = None::<u64>; // For compatibility with 0.0.103 and earlier
 +                                      let mut _user_payment_id = None::<u64>; // Used in 0.0.103 and earlier, no longer written in 0.0.116+.
                                        let mut via_channel_id = None;
                                        let mut claim_deadline = None;
                                        let mut via_user_channel_id = None;
Simple merge
Simple merge