1
0

follow-up prev: fix units when calling lnworker.create_invoice: msat/sat

follow-up e477a43385
This commit is contained in:
SomberNight
2021-02-01 22:08:09 +01:00
parent e477a43385
commit 3d1796ab1d

View File

@@ -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 = {