Add 'failed to get output distribution' as a transient error.

This commit is contained in:
tecnovert
2024-10-25 20:39:31 +02:00
parent 5e71367c21
commit 3cab753398

View File

@@ -83,6 +83,12 @@ class XMRInterface(CoinInterface):
# TODO: Estimate with ringsize # TODO: Estimate with ringsize
return 1604 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): def __init__(self, coin_settings, network, swap_client=None):
super().__init__(network) super().__init__(network)