mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 10:28:10 +01:00
xmr: add request-sent, idle, and output distribution to transient errors
This commit is contained in:
@@ -84,7 +84,15 @@ class XMRInterface(CoinInterface):
|
|||||||
|
|
||||||
def is_transient_error(self, ex) -> bool:
|
def is_transient_error(self, ex) -> bool:
|
||||||
str_error: str = str(ex).lower()
|
str_error: str = str(ex).lower()
|
||||||
if "failed to get earliest fork height" in str_error:
|
if any(
|
||||||
|
response in str_error
|
||||||
|
for response in [
|
||||||
|
"failed to get earliest fork height",
|
||||||
|
"failed to get output distribution",
|
||||||
|
"request-sent",
|
||||||
|
"idle",
|
||||||
|
]
|
||||||
|
):
|
||||||
return True
|
return True
|
||||||
return super().is_transient_error(ex)
|
return super().is_transient_error(ex)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user