Browse Source

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

follow-up cb39bbbd94
patch-4
SomberNight 3 years ago
parent
commit
aa5172faa2
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/submarine_swaps.py

2
electrum/submarine_swaps.py

@ -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,

Loading…
Cancel
Save