swaps: fix forward swap: lnworker.create_invoice is not async
follow-up cb39bbbd94
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user