Trie State migration rpc (#5180)

* update

* unsafe

* switch remote

* update rpc usage

* update cargo.lock

* lock from master

* updated lock
This commit is contained in:
cheme
2022-04-04 09:33:35 +02:00
committed by GitHub
parent 521f97ae48
commit 8f784d592a
4 changed files with 32 additions and 1 deletions
+5
View File
@@ -95,6 +95,7 @@ pub struct FullDeps<C, P, SC, B> {
/// Instantiate all RPC extensions.
pub fn create_full<C, P, SC, B>(
deps: FullDeps<C, P, SC, B>,
backend: Arc<B>,
) -> Result<RpcExtension, Box<dyn std::error::Error + Send + Sync>>
where
C: ProvideRuntimeApi<Block>
@@ -132,6 +133,10 @@ where
finality_provider,
} = grandpa;
io.extend_with(substrate_state_trie_migration_rpc::StateMigrationApi::to_delegate(
substrate_state_trie_migration_rpc::MigrationRpc::new(client.clone(), backend, deny_unsafe),
));
io.extend_with(SystemApi::to_delegate(FullSystem::new(client.clone(), pool, deny_unsafe)));
io.extend_with(TransactionPaymentApi::to_delegate(TransactionPayment::new(client.clone())));
io.extend_with(MmrApi::to_delegate(Mmr::new(client.clone())));