Skip to content

Commit

Permalink
fix: enable prover when network is set
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy committed Aug 8, 2024
1 parent 349d192 commit 1ac84cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions yarn-project/aztec/src/cli/cmds/start_pxe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export async function addPXE(
userLog(`Network ${pxeConfig.network} is not supported`);
process.exit(1);
}
// enable prover if network is set
pxeConfig.proverEnabled = true;
} else {
nodeUrl = pxeConfig.nodeUrl;
}
Expand Down
6 changes: 0 additions & 6 deletions yarn-project/pxe/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,6 @@ export const pxeCliConfigMappings: ConfigMappingsType<CliPXEOptions> = {
export const allPxeConfigMappings: ConfigMappingsType<CliPXEOptions & PXEServiceConfig> = {
...pxeConfigMappings,
...pxeCliConfigMappings,
proverEnabled: {
env: 'PXE_PROVER_ENABLED',
parseEnv: (val: string) => ['1', 'true'].includes(val) || !!process.env.NETWORK,
description: 'Enable real proofs',
isBoolean: true,
},
};

/**
Expand Down

0 comments on commit 1ac84cf

Please sign in to comment.