1
0

lnpeer: deduct JIT fees also for trampoline

This commit is contained in:
ThomasV
2025-12-06 10:33:24 +01:00
parent fb566eb59e
commit da998150ac

View File

@@ -3095,7 +3095,7 @@ class Peer(Logger, EventListener):
if trampoline_payment_key and trampoline_payment_key != payment_key:
# first stage of trampoline payment, the first stage must never get set COMPLETE
if amount_msat >= any_trampoline_onion.amt_to_forward:
if amount_msat >= (any_trampoline_onion.amt_to_forward - jit_opening_fees_msat):
# setting the parent key will mark the htlcs to be moved to the parent set
self.logger.debug(f"trampoline part complete. {len(mpp_set.htlcs)=}, "
f"{amount_msat=}. setting parent key: {trampoline_payment_key}")