rebalance: handle channels without short_channel_id
Some checks failed
Integration Tests (latest) / Test CLN=25.12, PY=3.10, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=25.12, PY=3.14, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.04, PY=3.10, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.04, PY=3.14, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.06.1, PY=3.10, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / Test CLN=26.06.1, PY=3.14, BCD=31.0, EXP=1, DEP=0 (push) Has been cancelled
Integration Tests (latest) / CI completion (push) Has been cancelled
Integration Tests (latest) / CI completion-1 (push) Has been cancelled
Integration Tests (latest) / CI completion-2 (push) Has been cancelled

This commit is contained in:
Marc Warne 2026-06-28 17:03:00 +02:00 committed by daywalker90
parent ea90b54d55
commit 0027610881

View file

@ -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",