From 3cab75339843f1878956d2b637da1f37996caab2 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Fri, 25 Oct 2024 20:39:31 +0200 Subject: [PATCH] Add 'failed to get output distribution' as a transient error. --- basicswap/interface/xmr.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/basicswap/interface/xmr.py b/basicswap/interface/xmr.py index ccff0c6..70c3cee 100644 --- a/basicswap/interface/xmr.py +++ b/basicswap/interface/xmr.py @@ -83,6 +83,12 @@ class XMRInterface(CoinInterface): # TODO: Estimate with ringsize return 1604 + def is_transient_error(self, ex) -> bool: + str_error: str = str(ex).lower() + if 'failed to get output distribution' in str_error: + return True + return super().is_transient_error(ex) + def __init__(self, coin_settings, network, swap_client=None): super().__init__(network)