diff --git a/.github/workflows/run-regtest-tests.yml b/.github/workflows/run-regtest-tests.yml index 1d5aa3a..06fc52a 100644 --- a/.github/workflows/run-regtest-tests.yml +++ b/.github/workflows/run-regtest-tests.yml @@ -97,6 +97,10 @@ jobs: address = "ST3AM1A56AK2C1XAFJ4115ZSV26EB49BVQ10MGCS0" amount = 10000000000000000 # secretKey = 7036b29cb5e235e5fd9b09ae3e8eec4404e44906814d5d01cbca968a60ed4bfb01 + [[ustx_balance]] + address = "ST3PF13W7Z0RRM42A8VZRVFQ75SV1K26RXEP8YGKJ" + amount = 10000000000000000 + # secretKey = b463f0df6c05d2f156393eee73f8016c5372caa0e9e29a901bb7171d90dc4f1401 EOF # - name: Build regtest-env diff --git a/package-lock.json b/package-lock.json index 0fe04eb..6234a2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,10 +13,10 @@ "@scure/btc-signer": "^1.2.1", "@sinclair/typebox": "^0.32.12", "@stacks/blockchain-api-client": "^7.8.1", - "@stacks/common": "^6.13.0", - "@stacks/network": "^6.13.0", - "@stacks/stacking": "^6.13.0", - "@stacks/transactions": "^6.13.0", + "@stacks/common": "^6.16.0", + "@stacks/network": "^6.16.0", + "@stacks/stacking": "^6.16.1", + "@stacks/transactions": "^6.16.1", "@stacks/wallet-sdk": "^6.16.1", "@types/node": "^20.11.5", "env-schema": "^5.2.1" @@ -25,7 +25,7 @@ "@commitlint/cli": "^18.4.4", "@commitlint/config-conventional": "^18.4.4", "@stacks/eslint-config": "^2.0.0", - "@stacks/stacks-blockchain-api-types": "^7.8.1", + "@stacks/stacks-blockchain-api-types": "^7.13.1", "@types/jest": "^29.5.11", "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", @@ -2634,17 +2634,18 @@ } }, "node_modules/@stacks/stacking": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/@stacks/stacking/-/stacking-6.13.0.tgz", - "integrity": "sha512-ivzFZkVpqzneJ71T1eZTW8Rr5oVYrs4HkwZqGHxDEySb1I6p96hojH5gEguj9g7szQiyeYLj1dreCvhLh6ET6A==", + "version": "6.16.1", + "resolved": "https://registry.npmjs.org/@stacks/stacking/-/stacking-6.16.1.tgz", + "integrity": "sha512-Bv7TSyoMrb1wYOfKrPxwDQPSjsohyKCduN1HYMlKL9hHF0J8+MvlJFw9eIj1c2SEOyYaElT+Ly3CI56J/acVxw==", + "license": "MIT", "dependencies": { "@noble/hashes": "1.1.5", "@scure/base": "1.1.1", - "@stacks/common": "^6.13.0", - "@stacks/encryption": "^6.13.0", - "@stacks/network": "^6.13.0", + "@stacks/common": "^6.16.0", + "@stacks/encryption": "^6.16.1", + "@stacks/network": "^6.16.0", "@stacks/stacks-blockchain-api-types": "^0.61.0", - "@stacks/transactions": "^6.13.0", + "@stacks/transactions": "^6.16.1", "bs58": "^5.0.0" } }, @@ -2676,9 +2677,10 @@ "integrity": "sha512-yPOfTUboo5eA9BZL/hqMcM71GstrFs9YWzOrJFPeP4cOO1wgYvAcckgBRbgiE3NqeX0A7SLZLDAXLZbATuRq9w==" }, "node_modules/@stacks/stacks-blockchain-api-types": { - "version": "7.8.2", - "resolved": "https://registry.npmjs.org/@stacks/stacks-blockchain-api-types/-/stacks-blockchain-api-types-7.8.2.tgz", - "integrity": "sha512-wcDSdgIZx/ttQfUTPtGJOIyEkTOjmCsC79TaIyxTIiihSgrGppqTuzkwHD/DyuQkcJtUZvDTxMsAXkBKShE1kw==" + "version": "7.13.1", + "resolved": "https://registry.npmjs.org/@stacks/stacks-blockchain-api-types/-/stacks-blockchain-api-types-7.13.1.tgz", + "integrity": "sha512-llTSMktwbMPG4CJyzVz1ruRI76PZZCctTe81PLyB9290y4Pbkspg1hUBn5atazfOWSrKI2TV7prPabD0/w/Flg==", + "license": "ISC" }, "node_modules/@stacks/storage": { "version": "6.16.1", diff --git a/package.json b/package.json index 49e118f..4bad6a8 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "@commitlint/cli": "^18.4.4", "@commitlint/config-conventional": "^18.4.4", "@stacks/eslint-config": "^2.0.0", - "@stacks/stacks-blockchain-api-types": "^7.8.1", + "@stacks/stacks-blockchain-api-types": "^7.13.1", "@types/jest": "^29.5.11", "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", @@ -35,10 +35,10 @@ "@scure/btc-signer": "^1.2.1", "@sinclair/typebox": "^0.32.12", "@stacks/blockchain-api-client": "^7.8.1", - "@stacks/common": "^6.13.0", - "@stacks/network": "^6.13.0", - "@stacks/stacking": "^6.13.0", - "@stacks/transactions": "^6.13.0", + "@stacks/common": "^6.16.0", + "@stacks/network": "^6.16.0", + "@stacks/stacking": "^6.16.1", + "@stacks/transactions": "^6.16.1", "@stacks/wallet-sdk": "^6.16.1", "@types/node": "^20.11.5", "env-schema": "^5.2.1" diff --git a/src/env.ts b/src/env.ts index 078e28a..1e655fd 100644 --- a/src/env.ts +++ b/src/env.ts @@ -10,16 +10,17 @@ const schema = Type.Object({ /** Stacks node host */ STACKS_NODE: Type.String({ default: 'http://localhost:20443' }), - /** List of pre-funded STX accounts on devnet (wallet 4, 5, 6, 1, 2, 3) */ + /** List of pre-funded STX accounts on devnet (wallet 4, 5, 6, 1, 2, 3, 7) */ PRIVATE_KEYS: Type.Array(Type.String(), { default: [ // taken from `settings/Devnet.toml` 'f9d7206a47f14d2870c163ebab4bf3e70d18f5d14ce1031f3902fbbc894fe4c701', '3eccc5dac8056590432db6a35d52b9896876a3d5cbdea53b72400bc9c2099fe801', - '7036b29cb5e235e5fd9b09ae3e8eec4404e44906814d5d01cbca968a60ed4bfb01', - '7287ba251d44a4d3fd9276c88ce34c5c52a038955511cccaf77e61068649c17801', // signer - '530d9f61984c888536871c6573073bdfc0058896dc1adfe9a6a10dfacadc209101', // signer - 'd655b2523bcd65e34889725c73064feb17ceb796831c0e111ba1a552b0f31b3901', // signer + '7036b29cb5e235e5fd9b09ae3e8eec4404e44906814d5d01cbca968a60ed4bfb01', // regtest signer + '7287ba251d44a4d3fd9276c88ce34c5c52a038955511cccaf77e61068649c17801', // devnet signer + '530d9f61984c888536871c6573073bdfc0058896dc1adfe9a6a10dfacadc209101', // devnet signer + 'd655b2523bcd65e34889725c73064feb17ceb796831c0e111ba1a552b0f31b3901', // devnet signer + 'b463f0df6c05d2f156393eee73f8016c5372caa0e9e29a901bb7171d90dc4f1401', ], }), @@ -47,7 +48,7 @@ const schema = Type.Object({ */ SKIP_UNLOCK: Type.Boolean({ default: false }), - POLL_INTERVAL: Type.Integer({ default: 200 }), + POLL_INTERVAL: Type.Integer({ default: 300 }), RETRY_INTERVAL: Type.Integer({ default: 500 }), STACKS_TX_TIMEOUT: Type.Integer({ default: 10_000 }), diff --git a/src/tests/regtest.test.ts b/src/tests/regtest.test.ts index cb16ce1..f46c651 100644 --- a/src/tests/regtest.test.ts +++ b/src/tests/regtest.test.ts @@ -43,7 +43,7 @@ describe('regtest-env pox-4', () => { }); afterEach(async () => { - await networkEnvDown(); + // await networkEnvDown(); }); test('stack-stx (in reward-phase)', async () => { @@ -51,7 +51,7 @@ describe('regtest-env pox-4', () => { // steph is a solo stacker and stacks in a reward-phase // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -139,6 +139,7 @@ describe('regtest-env pox-4', () => { if (ENV.SKIP_UNLOCK) return; await waitForBurnBlockHeight(info.details.unlock_height + 2); + await timeout(1000); info = await client.getStatus(); expect(info.stacked).toBeFalsy(); @@ -146,8 +147,6 @@ describe('regtest-env pox-4', () => { const reward = (await getRewards(steph.btcAddress))[0]; expect(reward).toBeDefined(); expect(reward.burn_block_height).toBeGreaterThan(stackHeight); - - // EXPORT EVENTS }); test('stack-stx (before prepare-phase)', async () => { @@ -156,7 +155,7 @@ describe('regtest-env pox-4', () => { // the prepare phase) // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -242,15 +241,15 @@ describe('regtest-env pox-4', () => { if (ENV.SKIP_UNLOCK) return; await waitForBurnBlockHeight(info.details.unlock_height + 2); + await timeout(1000); info = await client.getStatus(); expect(info.stacked).toBeFalsy(); // ENSURE REWARDS const reward = (await getRewards(steph.btcAddress))[0]; + await timeout(1000); expect(reward).toBeDefined(); expect(reward.burn_block_height).toBeGreaterThan(stackHeight); - - // EXPORT EVENTS }); test('stack-stx (in prepare-phase)', async () => { @@ -260,7 +259,7 @@ describe('regtest-env pox-4', () => { // for stacking -- this should result in no rewards being paid out. // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -352,8 +351,6 @@ describe('regtest-env pox-4', () => { // ENSURE NO REWARDS const rewards = await getRewards(steph.btcAddress); expect(rewards.every(r => r.burn_block_height < stackHeight)).toBeTruthy(); // no new rewards - - // EXPORT EVENTS }); test('stack-stx (reward-phase), stack-extend (reward-phase)', async () => { @@ -362,7 +359,7 @@ describe('regtest-env pox-4', () => { // steph then extends in a reward-phase // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -499,8 +496,6 @@ describe('regtest-env pox-4', () => { const rewards = await getRewards(steph.btcAddress); expect(rewards.filter(r => r.burn_block_height > stackHeight).length).toBeGreaterThan(0); expect(rewards.filter(r => r.burn_block_height > extendHeight).length).toBeGreaterThan(0); - - // EXPORT EVENTS }); test('stack-stx (reward-phase), stack-extend (prepare-phase)', async () => { @@ -509,7 +504,7 @@ describe('regtest-env pox-4', () => { // steph then attempts to extend in a prepare-phase // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -650,8 +645,6 @@ describe('regtest-env pox-4', () => { const rewards = await getRewards(steph.btcAddress); expect(rewards.filter(r => r.burn_block_height > stackHeight).length).toBeGreaterThan(0); expect(rewards.filter(r => r.burn_block_height > extendHeight).length).toBe(0); // extend didn't make it - - // EXPORT EVENTS }); test('stack-stx (reward-phase), stack-increase (reward-phase)', async () => { @@ -660,7 +653,7 @@ describe('regtest-env pox-4', () => { // steph then increases in a reward-phase // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -792,8 +785,6 @@ describe('regtest-env pox-4', () => { const rewards = await getRewards(steph.btcAddress); expect(rewards.filter(r => r.burn_block_height > stackHeight).length).toBeGreaterThan(0); expect(rewards.filter(r => r.burn_block_height > increaseHeight).length).toBeGreaterThan(0); - - // EXPORT EVENTS }); test('stack-stx (reward-phase), stack-increase (prepare-phase)', async () => { @@ -802,7 +793,7 @@ describe('regtest-env pox-4', () => { // steph then increases in a prepare-phase // but steph doesn't run a signer, so we need to use a different signer key const steph = getAccount(ENV.PRIVATE_KEYS[0]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient(steph.address, network); @@ -940,8 +931,6 @@ describe('regtest-env pox-4', () => { expect(rewards.filter(r => r.burn_block_height > increaseHeight).length).toBeGreaterThan(0); // todo: (functional) some how ensure the slots were not increased on the blockchain side - - // EXPORT EVENTS }); test('pool: delegate-stack, agg-increase (prepare-phase)', async () => { @@ -953,8 +942,8 @@ describe('regtest-env pox-4', () => { // the pool commit-increases (in the prepare-phase) const alice = getAccount(ENV.PRIVATE_KEYS[0]); const bob = getAccount(ENV.PRIVATE_KEYS[1]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1017,15 +1006,14 @@ describe('regtest-env pox-4', () => { ); // TRANSACTION (pool commit) - const authId = crypto.randomBytes(1)[0]; - const signature = pool.client.signPoxSignature({ + let signature = pool.client.signPoxSignature({ topic: 'agg-commit', period: 1, rewardCycle: nextCycle, poxAddress: pool.btcAddress, signerPrivateKey: signer.signerPrivateKey, maxAmount: amount * 2n, - authId, + authId: 0, }); const { txid: poolCommit } = await pool.client.stackAggregationCommitIndexed({ poxAddress: pool.btcAddress, @@ -1033,7 +1021,7 @@ describe('regtest-env pox-4', () => { signerKey: signer.signerPublicKey, signerSignature: signature, maxAmount: amount * 2n, - authId, + authId: 0, privateKey: pool.key, nonce: poolNonce++, }); @@ -1047,7 +1035,7 @@ describe('regtest-env pox-4', () => { expect(eventsCommit.map(r => r.data)).toContainEqual( expect.objectContaining({ start_cycle_id: nextCycle.toString(), - end_cycle_id: nextCycle.toString(), // todo: incorrect on core, should be +1 + end_cycle_id: (nextCycle + 1).toString(), }) ); @@ -1083,10 +1071,23 @@ describe('regtest-env pox-4', () => { expect(await bob.client.getAccountBalanceLocked()).toBe(amount); // TRANSACTION (pool commit-increase) + signature = pool.client.signPoxSignature({ + topic: 'agg-increase', + period: 1, + rewardCycle: nextCycle, + poxAddress: pool.btcAddress, + signerPrivateKey: signer.signerPrivateKey, + maxAmount: amount * 2n, + authId: 1, + }); const { txid: poolIncrease } = await pool.client.stackAggregationIncrease({ poxAddress: pool.btcAddress, rewardCycle: nextCycle, rewardIndex: commitIndex, + signerKey: signer.signerPublicKey, + signerSignature: signature, + maxAmount: amount * 2n, + authId: 1, privateKey: pool.key, nonce: poolNonce++, }); @@ -1098,8 +1099,8 @@ describe('regtest-env pox-4', () => { expect(eventsIncrease.map(r => r.data)).toContainEqual( expect.objectContaining({ - start_cycle_id: nextCycle.toString(), // todo: incorrect on core, should be // + prepare offset - end_cycle_id: nextCycle.toString(), // todo: incorrect on core, should be +1 + start_cycle_id: (nextCycle + 1).toString(), // + prepare offset + end_cycle_id: (nextCycle + 1).toString(), }) ); @@ -1110,8 +1111,6 @@ describe('regtest-env pox-4', () => { }); expect(rewardSet).toBeDefined(); expect(rewardSet?.total_ustx).toBe(amount * 2n); - - // EXPORT EVENTS }); test.skip('pool: agg increase over maxAmount', async () => { @@ -1124,7 +1123,7 @@ describe('regtest-env pox-4', () => { const alice = getAccount(ENV.PRIVATE_KEYS[0]); const pool = getAccount(ENV.PRIVATE_KEYS[1]); - const signer = getAccount(ENV.PRIVATE_KEYS[3]); + const signer = getAccount(ENV.PRIVATE_KEYS[2]); // PREP const client = new StackingClient('', network); @@ -1234,8 +1233,6 @@ describe('regtest-env pox-4', () => { }); expect(rewardSet).toBeDefined(); expect(rewardSet?.total_ustx).toBe(fullAmount); - - // EXPORT EVENTS }); test('pool: delegate with invalid hashbyte length', async () => { @@ -1243,7 +1240,7 @@ describe('regtest-env pox-4', () => { // alice delegates to a pool with an invalid hashbyte length // the transaction should fail (but won't) const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1323,7 +1320,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1375,7 +1372,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1436,7 +1433,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1511,7 +1508,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1612,7 +1609,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1662,7 +1659,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1700,7 +1697,7 @@ describe('regtest-env pox-4', () => { // alice is still locked const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -1765,7 +1762,7 @@ describe('regtest-env pox-4', () => { const alice = getAccount(ENV.PRIVATE_KEYS[0]); const bob = getAccount(ENV.PRIVATE_KEYS[1]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2082,7 +2079,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2173,7 +2170,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2202,7 +2199,7 @@ describe('regtest-env pox-4', () => { // alice should be locked const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2292,7 +2289,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2352,7 +2349,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2470,7 +2467,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2528,7 +2525,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); const random = getAccount(ENV.PRIVATE_KEYS[1]); // PREP @@ -2574,7 +2571,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2622,7 +2619,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2671,7 +2668,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2740,7 +2737,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2797,7 +2794,7 @@ describe('regtest-env pox-4', () => { // the transaction should fail const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network); @@ -2851,7 +2848,7 @@ describe('regtest-env pox-4', () => { // lock has been extended const alice = getAccount(ENV.PRIVATE_KEYS[0]); - const pool = getAccount(ENV.PRIVATE_KEYS[2]); + const pool = getAccount(ENV.PRIVATE_KEYS[3]); // PREP const client = new StackingClient('', network);