Move registration of ReadRuntimeVersionExt to ExecutionExtension (#13820)

Instead of registering `ReadRuntimeVersionExt` in `sp-state-machine` it is moved to
`ExecutionExtension` which provides the default extensions.
This commit is contained in:
Bastian Köcher
2023-04-05 14:27:26 +02:00
committed by GitHub
parent d3f5c70dde
commit 495773f96d
14 changed files with 40 additions and 27 deletions
+2 -1
View File
@@ -290,12 +290,13 @@ impl<Block: BlockT, D, Backend, G: GenesisInit>
});
let executor = LocalCallExecutor::new(
self.backend.clone(),
executor,
executor.clone(),
Default::default(),
ExecutionExtensions::new(
self.execution_strategies.clone(),
self.keystore.clone(),
sc_offchain::OffchainDb::factory_from_backend(&*self.backend),
Arc::new(executor),
),
)
.expect("Creates LocalCallExecutor");