From: Chris Duncan Date: Sun, 9 Aug 2026 20:59:35 +0000 (-0700) Subject: Fix account derivation test to work with new lower hard cap. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=56bb66b2be9b1c19ba8d3295617bc539a8bec1b8;p=libnemo.git Fix account derivation test to work with new lower hard cap. --- diff --git a/test/test.derive-accounts.mjs b/test/test.derive-accounts.mjs index be80fa5..e2ddf08 100644 --- a/test/test.derive-accounts.mjs +++ b/test/test.derive-accounts.mjs @@ -10,13 +10,13 @@ import { CUSTOM_TEST_VECTORS, NANO_TEST_VECTORS, TEST_PASSWORD } from './VECTORS await Promise.all([ suite('Derive accounts from BIP-44 wallet', async () => { - await test('derive the first 10,000 accounts from the given BIP-44 seed', async () => { + await test('derive the first 1000 accounts from the given BIP-44 seed', async () => { const wallet = await Wallet.load('BIP-44', TEST_PASSWORD, NANO_TEST_VECTORS.BIP39_SEED) await wallet.unlock(TEST_PASSWORD) let start, end start = performance.now() - await wallet.accounts(0, 10_000) + await wallet.accounts(0, 1000) end = performance.now() console.log('duration', end - start) @@ -94,13 +94,13 @@ await Promise.all([ suite('Derive accounts from BLAKE2b wallet', async () => { - await test('derive the first 10,000 accounts from the given BLAKE2b seed', async () => { + await test('derive the first 1000 accounts from the given BLAKE2b seed', async () => { const wallet = await Wallet.load('BLAKE2b', TEST_PASSWORD, NANO_TEST_VECTORS.BLAKE2B_SEED) await wallet.unlock(TEST_PASSWORD) let start, end start = performance.now() - await wallet.accounts(0, 10_000) + await wallet.accounts(0, 1000) end = performance.now() console.log('duration', end - start) @@ -182,13 +182,13 @@ await Promise.all([ suite('Derive accounts from Exodus wallet', async () => { const { ADDRESS_0, ADDRESS_1, BIP39_SEED_0, BIP39_SEED_1, PUBLIC_0, PUBLIC_1 } = CUSTOM_TEST_VECTORS.EXODUS - await test('derive the first 10,000 accounts from the given Exodus seed', async () => { + await test('derive the first 1000 accounts from the given Exodus seed', async () => { const wallet = await Wallet.load('Exodus', TEST_PASSWORD, BIP39_SEED_0) await wallet.unlock(TEST_PASSWORD) let start, end start = performance.now() - await wallet.accounts(0, 10_000) + await wallet.accounts(0, 1000) end = performance.now() console.log('duration', end - start)