Skip to content

Commit

Permalink
feat: add holesky
Browse files Browse the repository at this point in the history
  • Loading branch information
blombern committed Feb 19, 2024
1 parent a459c6b commit bb49b23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ impl<'de> Deserialize<'de> for Env {
pub enum Network {
Mainnet,
Goerli,
Holesky,
}

impl fmt::Display for Network {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let str = match &self {
Network::Mainnet => "mainnet",
Network::Goerli => "goerli",
Network::Holesky => "holesky",
};
write!(f, "{}", str)
}
Expand Down
1 change: 1 addition & 0 deletions src/phoenix/inclusion_monitor/loki_client/slot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ lazy_static! {
match APP_CONFIG.network {
Network::Mainnet => "2020-12-01T12:00:23Z".parse().unwrap(),
Network::Goerli => "2021-03-23T14:00:00Z".parse().unwrap(),
Network::Holesky => "2023-09-28T12:00:00Z".parse().unwrap(),
}
};
}
Expand Down

0 comments on commit bb49b23

Please sign in to comment.