1
0

onion_message: ensure blinded path is list

This commit is contained in:
Sander van Grieken
2025-11-10 14:59:58 +01:00
parent 9481f4f636
commit 3cb639f9b4

View File

@@ -249,6 +249,9 @@ def send_onion_message_to(
else:
# we need a route to introduction point
remaining_blinded_path = blinded_path['path']
if not isinstance(remaining_blinded_path, list): # doesn't return list when num items == 1
remaining_blinded_path = [remaining_blinded_path]
peer = lnwallet.peers.get(introduction_point)
# if blinded path introduction point is our direct peer, no need to route-find
if peer: