From 58210bed8c623515cff30df29f25285759d0597b Mon Sep 17 00:00:00 2001 From: Marc Warne Date: Sun, 28 Jun 2026 17:03:00 +0200 Subject: [PATCH] rebalance: handle channels without short_channel_id --- rebalance/rebalance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebalance/rebalance.py b/rebalance/rebalance.py index d315022bb..0a8ee2808 100755 --- a/rebalance/rebalance.py +++ b/rebalance/rebalance.py @@ -220,7 +220,7 @@ def amounts_from_scid(scid): def peer_from_scid(short_channel_id, my_node_id, payload): channels = plugin.rpc.listpeerchannels().get("channels") for ch in channels: - if ch["short_channel_id"] == short_channel_id: + if ch.get("short_channel_id") == short_channel_id: return ch["peer_id"] raise RpcError( "rebalance",