lnworker: fix rebalance_channels
fixes https://github.com/spesmilo/electrum/issues/8468
This commit is contained in:
@@ -1269,7 +1269,11 @@ class Commands:
|
||||
from_channel = wallet.lnworker.get_channel_by_scid(from_scid)
|
||||
dest_channel = wallet.lnworker.get_channel_by_scid(dest_scid)
|
||||
amount_sat = satoshis(amount)
|
||||
success, log = await wallet.lnworker.rebalance_channels(from_channel, dest_channel, amount_sat * 1000)
|
||||
success, log = await wallet.lnworker.rebalance_channels(
|
||||
from_channel,
|
||||
dest_channel,
|
||||
amount_msat=amount_sat * 1000,
|
||||
)
|
||||
return {
|
||||
'success': success,
|
||||
'log': [x.formatted_tuple() for x in log]
|
||||
|
||||
Reference in New Issue
Block a user