From 82a58f687224d96d22fa167cab877db19da90f1f Mon Sep 17 00:00:00 2001 From: Victor Kirov Date: Mon, 28 Oct 2024 16:23:40 +0200 Subject: [PATCH] Fix retry logic --- api/esplora/esploraAPiProvider.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;