From 1c3268c2ff1a5fd54c37e0239ea64d63312162b1 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 6 May 2025 13:03:38 +0200 Subject: [PATCH] submarine_swaps: make callback async (follow-up previous commit) --- electrum/submarine_swaps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index 8f0ec388b..967abe0b8 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -341,7 +341,8 @@ class SwapManager(Logger): if sha256(preimage) == swap.payment_hash: return preimage - def _claim_swap(self, swap: SwapData) -> None: + @log_exceptions + async def _claim_swap(self, swap: SwapData) -> None: assert self.network assert self.lnwatcher if not self.lnwatcher.adb.is_up_to_date():