mirror of
https://github.com/lightningd/plugins.git
synced 2026-08-18 13:09:00 +02:00
parent
4fdaaa461d
commit
5416decde2
1 changed files with 4 additions and 1 deletions
|
|
@ -146,7 +146,10 @@ def rebalance(plugin, outgoing_scid, incoming_scid, msatoshi: Millisatoshi=None,
|
|||
plugin.log("Invoice payment_hash: %s" % payment_hash)
|
||||
success_msg = ""
|
||||
try:
|
||||
excludes = [outgoing_scid + "/0", incoming_scid + "/0"]
|
||||
excludes = []
|
||||
mychannels = plugin.rpc.listchannels(source=my_node_id)['channels']
|
||||
for channel in mychannels:
|
||||
excludes += [channel['short_channel_id'] + '/0', channel['short_channel_id'] + '/1']
|
||||
while int(time.time()) - start_ts < int(retry_for):
|
||||
r = plugin.rpc.getroute(incoming_node_id, msatoshi, riskfactor=1, cltv=9, fromid=outgoing_node_id,
|
||||
exclude=excludes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue