Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rebalance/rebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down