Skip to content

Commit 712cc44

Browse files
authored
Merge pull request #61 from succinctlabs/taehoon/make-limit-configurable
refactor(script/bin): make gas/cycle limits configurable
2 parents d6ed390 + eadc2f2 commit 712cc44

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

script/bin/operator.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,18 @@ where
489489
.prove(&self.pk, &stdin)
490490
.strategy(FulfillmentStrategy::Auction)
491491
.skip_simulation(true)
492-
.cycle_limit(10_000_000_000)
493-
.gas_limit(1_000_000_000)
492+
.cycle_limit(
493+
env::var("PROVER_CYCLE_LIMIT")
494+
.expect("PROVER_CYCLE_LIMIT not set")
495+
.parse::<u64>()
496+
.expect("Failed to parse PROVER_CYCLE_LIMIT"),
497+
)
498+
.gas_limit(
499+
env::var("PROVER_GAS_LIMIT")
500+
.expect("PROVER_GAS_LIMIT not set")
501+
.parse::<u64>()
502+
.expect("Failed to parse PROVER_GAS_LIMIT"),
503+
)
494504
.min_auction_period(10)
495505
.plonk()
496506
.timeout(Duration::from_secs(PROOF_TIMEOUT_SECONDS))

0 commit comments

Comments
 (0)