@@ -30,7 +30,7 @@ use grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider};
30
30
use sc_executor:: native_executor_instance;
31
31
use log:: info;
32
32
pub use service:: {
33
- Role , PruningMode , TransactionPoolOptions , Error , RuntimeGenesis ,
33
+ Role , PruningMode , TransactionPoolOptions , Error , RuntimeGenesis , RpcHandlers ,
34
34
TFullClient , TLightClient , TFullBackend , TLightBackend , TFullCallExecutor , TLightCallExecutor ,
35
35
Configuration , ChainSpec , ServiceBuilderCommand , ServiceComponents , KeepAliveServiceComponents ,
36
36
} ;
@@ -635,9 +635,12 @@ macro_rules! new_light {
635
635
} ) ?
636
636
. build_light( )
637
637
. map( |ServiceComponents { task_manager, telemetry, base_path, rpc, rpc_handlers, .. } | {
638
- KeepAliveServiceComponents {
639
- task_manager, other: Box :: new( ( telemetry, base_path, rpc, rpc_handlers) )
640
- }
638
+ (
639
+ KeepAliveServiceComponents {
640
+ task_manager, other: Box :: new( ( telemetry, base_path, rpc) )
641
+ } ,
642
+ rpc_handlers,
643
+ )
641
644
} )
642
645
} }
643
646
}
@@ -777,19 +780,25 @@ pub struct FullNodeHandles {
777
780
}
778
781
779
782
/// Create a new Polkadot service for a light client.
780
- pub fn polkadot_new_light ( mut config : Configuration ) -> Result < KeepAliveServiceComponents , ServiceError >
783
+ pub fn polkadot_new_light ( mut config : Configuration ) -> Result <
784
+ ( KeepAliveServiceComponents , RpcHandlers ) , ServiceError
785
+ >
781
786
{
782
787
new_light ! ( config, polkadot_runtime:: RuntimeApi , PolkadotExecutor )
783
788
}
784
789
785
790
/// Create a new Kusama service for a light client.
786
- pub fn kusama_new_light ( mut config : Configuration ) -> Result < KeepAliveServiceComponents , ServiceError >
791
+ pub fn kusama_new_light ( mut config : Configuration ) -> Result <
792
+ ( KeepAliveServiceComponents , RpcHandlers ) , ServiceError
793
+ >
787
794
{
788
795
new_light ! ( config, kusama_runtime:: RuntimeApi , KusamaExecutor )
789
796
}
790
797
791
798
/// Create a new Westend service for a light client.
792
- pub fn westend_new_light ( mut config : Configuration , ) -> Result < KeepAliveServiceComponents , ServiceError >
799
+ pub fn westend_new_light ( mut config : Configuration , ) -> Result <
800
+ ( KeepAliveServiceComponents , RpcHandlers ) , ServiceError
801
+ >
793
802
{
794
803
new_light ! ( config, westend_runtime:: RuntimeApi , KusamaExecutor )
795
804
}
0 commit comments