We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bd4c7d commit 5c915dbCopy full SHA for 5c915db
lightning/src/routing/router.rs
@@ -1267,7 +1267,12 @@ impl<'a> PaymentPath<'a> {
1267
cur_hop_transferred_amount_msat += extra_fees_msat;
1268
total_fee_paid_msat += extra_fees_msat;
1269
cur_hop_fees_msat += extra_fees_msat;
1270
- extra_contribution_msat += extra_fees_msat;
+
1271
+ // We remember and return the extra fees on the final hop to allow accounting for
1272
+ // them in the path's value contribution.
1273
+ if last_hop {
1274
+ extra_contribution_msat = extra_fees_msat;
1275
+ }
1276
}
1277
1278
if last_hop {
0 commit comments