@@ -29,6 +29,7 @@ use sp_consensus_babe::BabeApi;
2929use sc_client_api:: light:: { Fetcher , RemoteBlockchain } ;
3030use sc_consensus_babe:: Epoch ;
3131use sc_rpc:: DenyUnsafe ;
32+ use sp_block_builder:: BlockBuilder ;
3233
3334/// A type representing all RPC extensions.
3435pub type RpcExtension = jsonrpc_core:: IoHandler < sc_rpc:: Metadata > ;
@@ -87,6 +88,7 @@ pub fn create_full<C, P, UE, SC>(deps: FullDeps<C, P, SC>) -> RpcExtension where
8788 C :: Api : frame_rpc_system:: AccountNonceApi < Block , AccountId , Nonce > ,
8889 C :: Api : pallet_transaction_payment_rpc:: TransactionPaymentRuntimeApi < Block , Balance , UE > ,
8990 C :: Api : BabeApi < Block > ,
91+ C :: Api : BlockBuilder < Block > ,
9092 P : TransactionPool + Sync + Send + ' static ,
9193 UE : codec:: Codec + Send + Sync + ' static ,
9294 SC : SelectChain < Block > + ' static ,
@@ -116,7 +118,7 @@ pub fn create_full<C, P, UE, SC>(deps: FullDeps<C, P, SC>) -> RpcExtension where
116118 } = grandpa;
117119
118120 io. extend_with (
119- SystemApi :: to_delegate ( FullSystem :: new ( client. clone ( ) , pool) )
121+ SystemApi :: to_delegate ( FullSystem :: new ( client. clone ( ) , pool, deny_unsafe ) )
120122 ) ;
121123 io. extend_with (
122124 TransactionPaymentApi :: to_delegate ( TransactionPayment :: new ( client. clone ( ) ) )
@@ -164,7 +166,7 @@ pub fn create_light<C, P, F, UE>(deps: LightDeps<C, F, P>) -> RpcExtension
164166 } = deps;
165167 let mut io = jsonrpc_core:: IoHandler :: default ( ) ;
166168 io. extend_with (
167- SystemApi :: < AccountId , Nonce > :: to_delegate ( LightSystem :: new ( client, remote_blockchain, fetcher, pool) )
169+ SystemApi :: < Hash , AccountId , Nonce > :: to_delegate ( LightSystem :: new ( client, remote_blockchain, fetcher, pool) )
168170 ) ;
169171 io
170172}
0 commit comments