1
0

swaps: fix forward swap: lnworker.create_invoice is not async

follow-up cb39bbbd94
This commit is contained in:
SomberNight
2022-03-30 17:42:12 +02:00
parent 4dd94172a6
commit aa5172faa2

View File

@@ -253,7 +253,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(
lnaddr, invoice = self.lnworker.create_invoice(
amount_msat=lightning_amount_sat * 1000,
message='swap',
expiry=3600 * 24,