From bd5247923d0065b27d1b222dd07e8474bdc031a8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 9 Aug 2026 13:57:54 -0700 Subject: [PATCH] Hard-cap wallet account derivation batch at 1000, now matches documentation. --- src/lib/wallet/accounts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/wallet/accounts.ts b/src/lib/wallet/accounts.ts index 21a0164..b437829 100644 --- a/src/lib/wallet/accounts.ts +++ b/src/lib/wallet/accounts.ts @@ -21,11 +21,11 @@ export async function _accounts (type: WalletType, accounts: Map 1_000) { + if (to - from > 100) { console.warn('libnemo performance may degrade when deriving many accounts at once') } - if (to - from > 10_000) { - throw new RangeError('Maximum 10,000 accounts per call') + if (to - from > 1_000) { + throw new RangeError('Maximum 1000 accounts per call') } const output = new Map() const missing: number[] = [] -- 2.52.0