From 86a34e6688125a8b38c41c5b82cb6deda243d174 Mon Sep 17 00:00:00 2001 From: Alessandro Rezzi Date: Sat, 2 Nov 2024 21:45:37 +0100 Subject: [PATCH] fix: nPageOverflow was not overflowing (#452) --- scripts/network/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/network/network.js b/scripts/network/network.js index 216ab5d9..5e9a383c 100644 --- a/scripts/network/network.js +++ b/scripts/network/network.js @@ -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)