@@ -112,10 +112,6 @@ pub fn new_partial(
112112 ..
113113 } = config;
114114
115- let evm_config = evm_config
116- . as_ref ( )
117- . ok_or_else ( || ServiceError :: Other ( "evm config is not set" . into ( ) ) ) ?;
118-
119115 let telemetry = config
120116 . telemetry_endpoints
121117 . clone ( )
@@ -241,7 +237,8 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
241237 let Configuration {
242238 substrate : mut config,
243239 bioauth_flow : bioauth_flow_config,
244- evm : evm_config,
240+ evm : _evm_config,
241+ ethereum_rpc : ethereum_rpc_config,
245242 } = config;
246243
247244 let grandpa_protocol_name = sc_finality_grandpa:: protocol_standard_name (
@@ -269,8 +266,8 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
269266 let bioauth_flow_config = bioauth_flow_config
270267 . ok_or_else ( || ServiceError :: Other ( "bioauth flow config is not set" . into ( ) ) ) ?;
271268
272- let evm_config =
273- evm_config . expect ( "already used during substrate partial components exctraction" ) ;
269+ let ethereum_rpc_config = ethereum_rpc_config
270+ . ok_or_else ( || ServiceError :: Other ( "Ethereum RPC config is not set" . into ( ) ) ) ? ;
274271
275272 let role = config. role . clone ( ) ;
276273 let can_author_with = sp_consensus:: CanAuthorWithNativeVersion :: new ( client. executor ( ) . clone ( ) ) ;
@@ -282,7 +279,7 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
282279 let prometheus_registry = config. prometheus_registry ( ) . cloned ( ) ;
283280 let eth_filter_pool: Option < FilterPool > = Some ( Arc :: new ( Mutex :: new ( BTreeMap :: new ( ) ) ) ) ;
284281 let eth_fee_history_cache: FeeHistoryCache = Arc :: new ( Mutex :: new ( BTreeMap :: new ( ) ) ) ;
285- let eth_fee_history_limit = evm_config . fee_history_limit ;
282+ let eth_fee_history_limit = ethereum_rpc_config . fee_history_limit ;
286283 let eth_overrides = humanode_rpc:: overrides_handle ( Arc :: clone ( & client) ) ;
287284
288285 let proposer_factory = sc_basic_authorship:: ProposerFactory :: new (
@@ -356,7 +353,6 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
356353 let select_chain = select_chain. clone ( ) ;
357354
358355 let eth_filter_pool = eth_filter_pool. clone ( ) ;
359- let eth_max_stored_filters = evm_config. max_stored_filters ;
360356 let frontier_backend = Arc :: clone ( & frontier_backend) ;
361357 let eth_overrides = Arc :: clone ( & eth_overrides) ;
362358 let eth_block_data_cache = Arc :: new ( fc_rpc:: EthBlockDataCacheTask :: new (
@@ -366,7 +362,6 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
366362 50 ,
367363 config. prometheus_registry ( ) . cloned ( ) ,
368364 ) ) ;
369- let eth_max_past_logs = evm_config. max_past_logs ;
370365 let eth_fee_history_cache = Arc :: clone ( & eth_fee_history_cache) ;
371366
372367 Box :: new ( move |deny_unsafe, subscription_task_executor| {
@@ -398,9 +393,9 @@ pub async fn new_full(config: Configuration) -> Result<TaskManager, ServiceError
398393 select_chain : select_chain. clone ( ) ,
399394 evm : humanode_rpc:: EvmDeps {
400395 eth_filter_pool : eth_filter_pool. clone ( ) ,
401- eth_max_stored_filters,
396+ eth_max_stored_filters : ethereum_rpc_config . max_stored_filters ,
402397 eth_backend : Arc :: clone ( & frontier_backend) ,
403- eth_max_past_logs,
398+ eth_max_past_logs : ethereum_rpc_config . max_past_logs ,
404399 eth_fee_history_limit,
405400 eth_fee_history_cache : Arc :: clone ( & eth_fee_history_cache) ,
406401 eth_overrides : Arc :: clone ( & eth_overrides) ,
0 commit comments