diff --git a/api/esplora/esploraAPiProvider.ts b/api/esplora/esploraAPiProvider.ts index f6cdf2b5..7bc676ac 100644 --- a/api/esplora/esploraAPiProvider.ts +++ b/api/esplora/esploraAPiProvider.ts @@ -60,11 +60,7 @@ export class BitcoinEsploraApiProvider { retries: 1, retryDelay: axiosRetry.exponentialDelay, retryCondition: (error) => { - if ( - error?.code === 'ECONNABORTED' || - error?.response?.status === 429 || - (error?.response?.status ?? 0) >= 500 - ) { + if (error?.response?.status === 429 || (error?.response?.status ?? 0) >= 500) { return true; } return false;