Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilWindle committed Aug 16, 2024
1 parent e323883 commit bfec6f6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yarn-project/end-to-end/src/e2e_prover/e2e_prover_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import {
createSnapshotManager,
publicDeployAccounts,
} from '../fixtures/snapshot_manager.js';
import { setupPXEService } from '../fixtures/utils.js';
import { getPrivateKeyFromIndex, setupPXEService } from '../fixtures/utils.js';
import { TokenSimulator } from '../simulators/token_simulator.js';

const { E2E_DATA_PATH: dataPath } = process.env;
Expand Down Expand Up @@ -234,6 +234,9 @@ export class FullProverTest {
{ blockUntilSync: true },
);

// The simulated prover node (now shutdown) used private key index 2
const proverNodePrivateKey = getPrivateKeyFromIndex(2);

this.logger.verbose('Starting fully proven prover node');
const proverConfig: ProverNodeConfig = {
...this.context.aztecNodeConfig,
Expand All @@ -242,6 +245,7 @@ export class FullProverTest {
proverId: new Fr(81),
realProofs: true,
proverAgentConcurrency: 2,
publisherPrivateKey: `0x${proverNodePrivateKey!.toString('hex')}`,
};
this.proverNode = await createProverNode(proverConfig, {
aztecNodeTxProvider: this.aztecNode,
Expand Down
2 changes: 2 additions & 0 deletions yarn-project/end-to-end/src/fixtures/snapshot_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ async function setupFromFresh(
const publisherPrivKey = publisherPrivKeyRaw === null ? null : Buffer.from(publisherPrivKeyRaw);

const validatorPrivKey = getPrivateKeyFromIndex(1);
const proverNodePrivateKey = getPrivateKeyFromIndex(2);

aztecNodeConfig.publisherPrivateKey = `0x${publisherPrivKey!.toString('hex')}`;
aztecNodeConfig.validatorPrivateKey = `0x${validatorPrivKey!.toString('hex')}`;
Expand Down Expand Up @@ -312,6 +313,7 @@ async function setupFromFresh(
proverId: new Fr(42),
realProofs: false,
proverAgentConcurrency: 2,
publisherPrivateKey: `0x${proverNodePrivateKey!.toString('hex')}`,
};
const proverNode = await createProverNode(proverConfig, {
aztecNodeTxProvider: aztecNode,
Expand Down

0 comments on commit bfec6f6

Please sign in to comment.