@@ -28,8 +28,8 @@ use sc_service::{
2828 config:: {
2929 BasePath , Configuration , DatabaseSource , IpNetwork , KeystoreConfig , NetworkConfiguration ,
3030 NodeKeyConfig , OffchainWorkerConfig , PrometheusConfig , PruningMode , Role ,
31- RpcBatchRequestConfig , RpcMethods , TelemetryEndpoints , TransactionPoolOptions ,
32- WasmExecutionMethod ,
31+ RpcBatchRequestConfig , RpcConfiguration , RpcMethods , TelemetryEndpoints ,
32+ TransactionPoolOptions , WasmExecutionMethod ,
3333 } ,
3434 BlocksPruning , ChainSpec , TracingReceiver ,
3535} ;
@@ -527,20 +527,22 @@ pub trait CliConfiguration<DCV: DefaultConfigurationValues = ()>: Sized {
527527 blocks_pruning : self . blocks_pruning ( ) ?,
528528 wasm_method : self . wasm_method ( ) ?,
529529 wasm_runtime_overrides : self . wasm_runtime_overrides ( ) ,
530- rpc_addr : self . rpc_addr ( DCV :: rpc_listen_port ( ) ) ?,
531- rpc_methods : self . rpc_methods ( ) ?,
532- rpc_max_connections : self . rpc_max_connections ( ) ?,
533- rpc_cors : self . rpc_cors ( is_dev) ?,
534- rpc_max_request_size : self . rpc_max_request_size ( ) ?,
535- rpc_max_response_size : self . rpc_max_response_size ( ) ?,
536- rpc_id_provider : None ,
537- rpc_max_subs_per_conn : self . rpc_max_subscriptions_per_connection ( ) ?,
538- rpc_port : DCV :: rpc_listen_port ( ) ,
539- rpc_message_buffer_capacity : self . rpc_buffer_capacity_per_connection ( ) ?,
540- rpc_batch_config : self . rpc_batch_config ( ) ?,
541- rpc_rate_limit : self . rpc_rate_limit ( ) ?,
542- rpc_rate_limit_whitelisted_ips : self . rpc_rate_limit_whitelisted_ips ( ) ?,
543- rpc_rate_limit_trust_proxy_headers : self . rpc_rate_limit_trust_proxy_headers ( ) ?,
530+ rpc : RpcConfiguration {
531+ addr : self . rpc_addr ( DCV :: rpc_listen_port ( ) ) ?,
532+ methods : self . rpc_methods ( ) ?,
533+ max_connections : self . rpc_max_connections ( ) ?,
534+ cors : self . rpc_cors ( is_dev) ?,
535+ max_request_size : self . rpc_max_request_size ( ) ?,
536+ max_response_size : self . rpc_max_response_size ( ) ?,
537+ id_provider : None ,
538+ max_subs_per_conn : self . rpc_max_subscriptions_per_connection ( ) ?,
539+ port : DCV :: rpc_listen_port ( ) ,
540+ message_buffer_capacity : self . rpc_buffer_capacity_per_connection ( ) ?,
541+ batch_config : self . rpc_batch_config ( ) ?,
542+ rate_limit : self . rpc_rate_limit ( ) ?,
543+ rate_limit_whitelisted_ips : self . rpc_rate_limit_whitelisted_ips ( ) ?,
544+ rate_limit_trust_proxy_headers : self . rpc_rate_limit_trust_proxy_headers ( ) ?,
545+ } ,
544546 prometheus_config : self
545547 . prometheus_config ( DCV :: prometheus_listen_port ( ) , & chain_spec) ?,
546548 telemetry_endpoints,
0 commit comments