We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7e333 commit 9759fdbCopy full SHA for 9759fdb
rebalance/rebalance.py
@@ -65,7 +65,7 @@ def setup_routing_fees(route, msat):
65
route_set_msat(r, msat)
66
r["delay"] = delay
67
channels = plugin.rpc.listchannels(r["channel"]).get("channels")
68
- ch = next(c for c in channels if c["destination"] == r["id"]) if channels else None
+ ch = next(c for c in channels if c["destination"] == r["id"])
69
fee = Millisatoshi(ch["base_fee_millisatoshi"])
70
# BOLT #7 requires fee >= fee_base_msat + ( amount_to_forward * fee_proportional_millionths / 1000000 )
71
fee += (
0 commit comments