From aa5172faa295432e67f1e6b55cb75c834da17090 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 30 Mar 2022 17:42:12 +0200 Subject: [PATCH] swaps: fix forward swap: lnworker.create_invoice is not async follow-up https://github.com/spesmilo/electrum/commit/cb39bbbd943e19b392302a1ac557c374fcd2d36b --- electrum/submarine_swaps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index dd7d38327..233aa93a6 100644 --- a/electrum/submarine_swaps.py +++ b/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,