Skip to content

Commit eb6db6d

Browse files
committed
refactor(script/bin): make gas/cycle limits configurable
1 parent fd1c446 commit eb6db6d

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+
.ok()
495+
.and_then(|s| s.parse().ok())
496+
.unwrap_or(10_000_000_000),
497+
)
498+
.gas_limit(
499+
env::var("PROVER_GAS_LIMIT")
500+
.ok()
501+
.and_then(|s| s.parse().ok())
502+
.unwrap_or(10_000_000_000),
503+
)
494504
.min_auction_period(10)
495505
.plonk()
496506
.timeout(Duration::from_secs(PROOF_TIMEOUT_SECONDS))

0 commit comments

Comments
 (0)