@@ -19,12 +19,11 @@ use tracing::{debug, info, warn};
1919use url:: Url ;
2020
2121use super :: { MUX_PATH_ENV , PbsConfig , RelayConfig , load_optional_env_var} ;
22- use crate :: types:: StaderPool ;
2322use crate :: {
2423 config:: { remove_duplicate_keys, safe_read_http_response} ,
2524 interop:: { lido:: utils:: * , ssv:: utils:: * , stader:: utils:: * } ,
2625 pbs:: RelayClient ,
27- types:: { BlsPublicKey , Chain } ,
26+ types:: { BlsPublicKey , Chain , StaderPool } ,
2827 utils:: default_bool,
2928} ;
3029
@@ -157,7 +156,7 @@ pub struct MuxConfig {
157156
158157impl MuxConfig {
159158 /// Returns the env, actual path, and internal path to use for the file
160- /// loader. In File mode, validates the mux file prior to returning.
159+ /// loader. In File mode, validates the mux file prior to returning.
161160 pub fn loader_env ( & self ) -> eyre:: Result < Option < ( String , String , String ) > > {
162161 let Some ( loader) = self . loader . as_ref ( ) else {
163162 return Ok ( None ) ;
@@ -260,29 +259,19 @@ impl MuxKeysLoader {
260259 bail ! ( "Lido registry requires RPC URL to be set in the PBS config" ) ;
261260 } ;
262261
263- fetch_lido_registry_keys (
264- rpc_url,
265- chain,
266- U256 :: from ( * node_operator_id) ,
267- lido_module_id. unwrap_or ( 1 ) ,
268- http_timeout,
269- )
270- . await
271- }
272- NORegistry :: SSV => {
273- fetch_ssv_pubkeys (
274- ssv_node_api_url,
275- ssv_public_api_url,
276- chain,
277- U256 :: from ( * node_operator_id) ,
278- http_timeout,
279- )
280- . await
281- }
262+ fetch_lido_registry_keys (
263+ rpc_url,
264+ chain,
265+ U256 :: from ( * node_operator_id) ,
266+ lido_module_id. unwrap_or ( 1 ) ,
267+ http_timeout,
268+ )
269+ . await
282270 }
283271 NORegistry :: SSV => {
284272 fetch_ssv_pubkeys (
285- ssv_api_url,
273+ ssv_node_api_url,
274+ ssv_public_api_url,
286275 chain,
287276 U256 :: from ( * node_operator_id) ,
288277 http_timeout,
0 commit comments