1
0

trampoline: when sending payment, log "is_legacy" (e2e vs pay2legacy)

This commit is contained in:
SomberNight
2025-11-21 15:45:33 +00:00
parent 30d34238e6
commit c288656dc0
2 changed files with 2 additions and 1 deletions

View File

@@ -3716,7 +3716,7 @@ class LNWallet(LNWorker):
total_msat=total_msat,
payment_secret=payment_secret)
num_hops = len(hops_data)
self.logger.info(f"pay len(route)={len(route)}")
self.logger.info(f"pay len(route)={len(route)}. for payment_hash={payment_hash.hex()}")
for i in range(len(route)):
self.logger.info(f" {i}: edge={route[i].short_channel_id} hop_data={hops_data[i]!r}")
assert final_cltv_abs <= cltv_abs, (final_cltv_abs, cltv_abs)

View File

@@ -222,6 +222,7 @@ def create_trampoline_route(
) -> LNPaymentTRoute:
# we decide whether to convert to a legacy payment
is_legacy, invoice_trampolines = is_legacy_relay(invoice_features, r_tags)
_logger.debug(f"Creating trampoline route for invoice_pubkey={invoice_pubkey.hex()}, {is_legacy=}")
# we build a route of trampoline hops and extend the route list in place
route = []