Skip to content

Commit

Permalink
feat(chainspec): read ontake fork height from env
Browse files Browse the repository at this point in the history
  • Loading branch information
petarvujovic98 committed Aug 28, 2024
1 parent 91d9a39 commit 20c509e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/chainspec/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,12 @@ pub static TAIKO_INTERNAL_L2_A: Lazy<Arc<ChainSpec>> = 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,
Expand Down

0 comments on commit 20c509e

Please sign in to comment.