Skip to content

Commit

Permalink
feat(providers): reverting back weights (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother authored Feb 6, 2025
1 parent bf1e0a3 commit 984d464
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions src/env/allnodes.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
use {
super::ProviderConfig,
crate::providers::{Priority, Weight},
std::collections::HashMap,
};
use {super::ProviderConfig, crate::providers::Weight, std::collections::HashMap};

#[derive(Debug)]
pub struct AllnodesConfig {
Expand Down Expand Up @@ -37,10 +33,11 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
// Keep in-sync with SUPPORTED_CHAINS.md

HashMap::from([
// Disabling Allnodes until the plan upgrade is complete
// Ethereum Mainnet
(
"eip155:1".into(),
("eth30082".into(), Weight::new(Priority::Max).unwrap()),
),
// (
// "eip155:1".into(),
// ("eth30082".into(), Weight::new(Priority::Max).unwrap()),
// ),
])
}
2 changes: 1 addition & 1 deletion src/env/infura.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn default_supported_chains() -> HashMap<String, (String, Weight)> {
// Ethereum
(
"eip155:1".into(),
("mainnet".into(), Weight::new(Priority::Custom(1)).unwrap()),
("mainnet".into(), Weight::new(Priority::Normal).unwrap()),
),
(
"eip155:11155111".into(),
Expand Down

0 comments on commit 984d464

Please sign in to comment.