Skip to content

Commit

Permalink
fix: nPageOverflow was not overflowing (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone authored Nov 2, 2024
1 parent a33f5dc commit 86a34e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export class ExplorerNetwork extends Network {
// 1) Find the total number of Blockbook txs
const walletTxs = (await this.#getPage(nStartHeight, addr, 1, 1)).txs;
// 2) This integer is larger than the number of pages
const nPageOverflow = walletTxs + 1;
const nPageOverflow = walletTxs + 2;
// 3) In case of page overflow, Blockbook will return the actual last page.
const nPage = (
await this.#getPage(nStartHeight, addr, nPageOverflow, 1)
Expand Down

0 comments on commit 86a34e6

Please sign in to comment.