Skip to content

Commit

Permalink
Add precompute flag parameter (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
lok52 authored Jun 1, 2023
1 parent d6070be commit e1a6bd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions zp-relayer/configs/relayerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const config = {
priceFeedType: (process.env.RELAYER_PRICE_FEED_TYPE || PriceFeedType.Native) as PriceFeedType,
priceFeedContractAddress: process.env.RELAYER_PRICE_FEED_CONTRACT_ADDRESS || null,
priceFeedBaseTokenAddress: process.env.RELAYER_PRICE_FEED_BASE_TOKEN_ADDRESS || null,
precomputeParams: process.env.RELAYER_PRECOMPUTE_PARAMS === 'true',
}

export default config
2 changes: 1 addition & 1 deletion zp-relayer/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { NativePriceFeed, OneInchPriceFeed, PriceFeedType } from './services/pri

function buildProver<T extends Circuit>(circuit: T, type: ProverType, path: string): IProver<T> {
if (type === ProverType.Local) {
const params = Params.fromFile(path, true)
const params = Params.fromFile(path, config.precomputeParams)
return new LocalProver(circuit, params)
} else if (type === ProverType.Remote) {
// TODO: test relayer with remote prover
Expand Down

0 comments on commit e1a6bd1

Please sign in to comment.