feat(lightning): probe LND routing fees - #1095
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1095 +/- ##
==========================================
+ Coverage 74.63% 74.67% +0.03%
==========================================
Files 115 115
Lines 13200 13223 +23
==========================================
+ Hits 9852 9874 +22
- Misses 3348 3349 +1 ☔ View full report in Codecov by Harness. |
|
Rationale for the updated fee handling:
At payment time, the mint already converts the stored quote reserve to msat and passes that exact value to LND as |
Summary
EstimateRouteFeeAPI when creating full-invoice melt quotesTesting
make checkpytest -q tests/lightning/test_lightning_backends_mocked.py tests/lightning/test_fee_unit_regressions.py(37 passed)test_lnd_payment_quote_uses_probed_fee(passed)test_lnd_payment_quote_uses_probed_fee(passed)The regtest requests a 100,000 sat CLN node 2 invoice that requires a multi-hop route from LND node 3. It asserts that the returned fee is non-zero and lower than the blind percentage-based reserve.