1
0

lnworker: fix rebalance_channels

fixes https://github.com/spesmilo/electrum/issues/8468
This commit is contained in:
SomberNight
2023-06-04 03:07:06 +00:00
parent 9b14b87936
commit 033ad0feb9
4 changed files with 15 additions and 8 deletions

View File

@@ -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]