]> git.codecow.com Git - libnemo.git/commitdiff
Fix account derivation test to work with new lower hard cap.
authorChris Duncan <chris@codecow.com>
Sun, 9 Aug 2026 20:59:35 +0000 (13:59 -0700)
committerChris Duncan <chris@codecow.com>
Sun, 9 Aug 2026 20:59:35 +0000 (13:59 -0700)
test/test.derive-accounts.mjs

index be80fa5a4d8731d119fa5aae477620a26c7ff6ef..e2ddf08da974babeedeabdd4cc7fee0162551332 100644 (file)
@@ -10,13 +10,13 @@ import { CUSTOM_TEST_VECTORS, NANO_TEST_VECTORS, TEST_PASSWORD } from './VECTORS
 await Promise.all([\r
        suite('Derive accounts from BIP-44 wallet', async () => {\r
 \r
-               await test('derive the first 10,000 accounts from the given BIP-44 seed', async () => {\r
+               await test('derive the first 1000 accounts from the given BIP-44 seed', async () => {\r
                        const wallet = await Wallet.load('BIP-44', TEST_PASSWORD, NANO_TEST_VECTORS.BIP39_SEED)\r
                        await wallet.unlock(TEST_PASSWORD)\r
 \r
                        let start, end\r
                        start = performance.now()\r
-                       await wallet.accounts(0, 10_000)\r
+                       await wallet.accounts(0, 1000)\r
                        end = performance.now()\r
                        console.log('duration', end - start)\r
 \r
@@ -94,13 +94,13 @@ await Promise.all([
 \r
        suite('Derive accounts from BLAKE2b wallet', async () => {\r
 \r
-               await test('derive the first 10,000 accounts from the given BLAKE2b seed', async () => {\r
+               await test('derive the first 1000 accounts from the given BLAKE2b seed', async () => {\r
                        const wallet = await Wallet.load('BLAKE2b', TEST_PASSWORD, NANO_TEST_VECTORS.BLAKE2B_SEED)\r
                        await wallet.unlock(TEST_PASSWORD)\r
 \r
                        let start, end\r
                        start = performance.now()\r
-                       await wallet.accounts(0, 10_000)\r
+                       await wallet.accounts(0, 1000)\r
                        end = performance.now()\r
                        console.log('duration', end - start)\r
 \r
@@ -182,13 +182,13 @@ await Promise.all([
        suite('Derive accounts from Exodus wallet', async () => {\r
                const { ADDRESS_0, ADDRESS_1, BIP39_SEED_0, BIP39_SEED_1, PUBLIC_0, PUBLIC_1 } = CUSTOM_TEST_VECTORS.EXODUS\r
 \r
-               await test('derive the first 10,000 accounts from the given Exodus seed', async () => {\r
+               await test('derive the first 1000 accounts from the given Exodus seed', async () => {\r
                        const wallet = await Wallet.load('Exodus', TEST_PASSWORD, BIP39_SEED_0)\r
                        await wallet.unlock(TEST_PASSWORD)\r
 \r
                        let start, end\r
                        start = performance.now()\r
-                       await wallet.accounts(0, 10_000)\r
+                       await wallet.accounts(0, 1000)\r
                        end = performance.now()\r
                        console.log('duration', end - start)\r
 \r