From 3cb639f9b4d0e09705c3699e74aad096b1cfc191 Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Mon, 10 Nov 2025 14:59:58 +0100 Subject: [PATCH] onion_message: ensure blinded path is list --- electrum/onion_message.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electrum/onion_message.py b/electrum/onion_message.py index 9c4e570a7..574fcbf95 100644 --- a/electrum/onion_message.py +++ b/electrum/onion_message.py @@ -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: