trampoline: when sending payment, log "is_legacy" (e2e vs pay2legacy)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user