tfollow-up prev: fix units when calling lnworker.create_invoice: msat/sat - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3d1796ab1da9d195e894e670555a92064c34459c DIR parent e477a433854dc935ec0d117e07b5e75d9817860f HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 1 Feb 2021 22:08:09 +0100 follow-up prev: fix units when calling lnworker.create_invoice: msat/sat follow-up e477a433854dc935ec0d117e07b5e75d9817860f Diffstat: M electrum/submarine_swaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py t@@ -238,7 +238,7 @@ class SwapManager(Logger): assert self.lnwatcher privkey = os.urandom(32) pubkey = ECPrivkey(privkey).get_public_key_bytes(compressed=True) - lnaddr, invoice = await self.lnworker.create_invoice(lightning_amount, 'swap', expiry=3600*24) + lnaddr, invoice = await self.lnworker.create_invoice(lightning_amount*1000, 'swap', expiry=3600*24) payment_hash = lnaddr.paymenthash preimage = self.lnworker.get_preimage(payment_hash) request_data = {