Skip to content

Commit

Permalink
SHARD-1067: Limit total pages from explorer (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgthuramoemyint authored Dec 6, 2024
1 parent 06f5542 commit c118eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ async function getExplorerPendingTransactions(): Promise<string[]> {
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}`
Expand Down

0 comments on commit c118eb7

Please sign in to comment.