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

@@ -262,7 +262,7 @@ class SwapManager(Logger):
privkey = os.urandom(32)
pubkey = ECPrivkey(privkey).get_public_key_bytes(compressed=True)
amount_msat = lightning_amount_sat * 1000
payment_hash = self.lnworker.create_payment_info(lightning_amount_sat)
payment_hash = self.lnworker.create_payment_info(amount_msat=amount_msat)
lnaddr, invoice = self.lnworker.get_bolt11_invoice(
payment_hash=payment_hash,
amount_msat=amount_msat,