From 20c509ea507af106441c4c0a5d6443bfad34ea7d Mon Sep 17 00:00:00 2001 From: Petar Vujovic Date: Wed, 28 Aug 2024 14:52:09 +0200 Subject: [PATCH] feat(chainspec): read ontake fork height from env --- crates/chainspec/src/spec.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/chainspec/src/spec.rs b/crates/chainspec/src/spec.rs index 9f1587b18b68..45759feca6d5 100644 --- a/crates/chainspec/src/spec.rs +++ b/crates/chainspec/src/spec.rs @@ -315,7 +315,12 @@ pub static TAIKO_INTERNAL_L2_A: Lazy> = Lazy::new(|| { #[cfg(feature = "taiko")] (Hardfork::Hekla, ForkCondition::Block(0)), #[cfg(feature = "taiko")] - (Hardfork::Ontake, ForkCondition::Block(20)), //todo + ( + Hardfork::Ontake, + ForkCondition::Block( + std::env::var("ONTAKE_HEIGHT").map_or(2000, |h| h.parse().unwrap_or(2000)), + ), + ), ]), base_fee_params: BaseFeeParamsKind::Constant(BaseFeeParams { max_change_denominator: 8,