From c118eb7c4fd768a525b27534e793d55eaa8639b5 Mon Sep 17 00:00:00 2001 From: Thura Moe Myint Date: Sat, 7 Dec 2024 03:12:20 +0700 Subject: [PATCH] SHARD-1067: Limit total pages from explorer (#87) --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.ts b/src/api.ts index e8b394e8..e9f8c59f 100755 --- a/src/api.ts +++ b/src/api.ts @@ -486,7 +486,7 @@ async function getExplorerPendingTransactions(): Promise { let currentPage = 1 let hasMorePages = true - while (hasMorePages) { + while (hasMorePages && currentPage <= 100) { try { const response = await axios.get( `${explorerURL}/api/originalTx?pending=true&decode=true&page=${currentPage}`