@@ -30,7 +30,7 @@ use sc_client_api::{BlockBackend, ExecutorProvider};
30
30
use sc_consensus_babe:: { self , SlotProportion } ;
31
31
use sc_executor:: NativeElseWasmExecutor ;
32
32
use sc_network:: { Event , NetworkService } ;
33
- use sc_service:: { config:: Configuration , error:: Error as ServiceError , TaskManager } ;
33
+ use sc_service:: { config:: Configuration , error:: Error as ServiceError , RpcHandlers , TaskManager } ;
34
34
use sc_telemetry:: { Telemetry , TelemetryWorker } ;
35
35
use sp_api:: ProvideRuntimeApi ;
36
36
use sp_core:: crypto:: Pair ;
@@ -298,6 +298,8 @@ pub struct NewFullBase {
298
298
pub network : Arc < NetworkService < Block , <Block as BlockT >:: Hash > > ,
299
299
/// The transaction pool of the node.
300
300
pub transaction_pool : Arc < TransactionPool > ,
301
+ /// The rpc handlers of the node.
302
+ pub rpc_handlers : RpcHandlers ,
301
303
}
302
304
303
305
/// Creates a full service from the configuration.
@@ -358,7 +360,7 @@ pub fn new_full_base(
358
360
let enable_grandpa = !config. disable_grandpa ;
359
361
let prometheus_registry = config. prometheus_registry ( ) . cloned ( ) ;
360
362
361
- let _rpc_handlers = sc_service:: spawn_tasks ( sc_service:: SpawnTasksParams {
363
+ let rpc_handlers = sc_service:: spawn_tasks ( sc_service:: SpawnTasksParams {
362
364
config,
363
365
backend,
364
366
client : client. clone ( ) ,
@@ -507,7 +509,7 @@ pub fn new_full_base(
507
509
}
508
510
509
511
network_starter. start_network ( ) ;
510
- Ok ( NewFullBase { task_manager, client, network, transaction_pool } )
512
+ Ok ( NewFullBase { task_manager, client, network, transaction_pool, rpc_handlers } )
511
513
}
512
514
513
515
/// Builds a new service for a full client.
0 commit comments