Skip to content

Commit c288656

Browse files
committed
trampoline: when sending payment, log "is_legacy" (e2e vs pay2legacy)
1 parent 30d3423 commit c288656

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

electrum/lnworker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3716,7 +3716,7 @@ def create_onion_for_route(
37163716
total_msat=total_msat,
37173717
payment_secret=payment_secret)
37183718
num_hops = len(hops_data)
3719-
self.logger.info(f"pay len(route)={len(route)}")
3719+
self.logger.info(f"pay len(route)={len(route)}. for payment_hash={payment_hash.hex()}")
37203720
for i in range(len(route)):
37213721
self.logger.info(f" {i}: edge={route[i].short_channel_id} hop_data={hops_data[i]!r}")
37223722
assert final_cltv_abs <= cltv_abs, (final_cltv_abs, cltv_abs)

electrum/trampoline.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def create_trampoline_route(
222222
) -> LNPaymentTRoute:
223223
# we decide whether to convert to a legacy payment
224224
is_legacy, invoice_trampolines = is_legacy_relay(invoice_features, r_tags)
225+
_logger.debug(f"Creating trampoline route for invoice_pubkey={invoice_pubkey.hex()}, {is_legacy=}")
225226

226227
# we build a route of trampoline hops and extend the route list in place
227228
route = []

0 commit comments

Comments
 (0)