mirror of
https://github.com/basicswap/basicswap.git
synced 2026-03-02 01:15:10 +01:00
particl: Can swap anon outputs
This commit is contained in:
@@ -18,6 +18,9 @@ from .rpc import (
|
||||
from .util import (
|
||||
pubkeyToAddress,
|
||||
)
|
||||
from .basicswap_util import (
|
||||
TemporaryError,
|
||||
)
|
||||
from .chainparams import (
|
||||
Coins,
|
||||
chainparams,
|
||||
@@ -136,5 +139,7 @@ class BaseApp:
|
||||
return out[0].decode('utf-8').strip()
|
||||
|
||||
def is_transient_error(self, ex):
|
||||
if isinstance(ex, TemporaryError):
|
||||
return True
|
||||
str_error = str(ex).lower()
|
||||
return 'read timed out' in str_error or 'no connection to daemon' in str_error
|
||||
|
||||
Reference in New Issue
Block a user