Companion PR for #5200 (#1025)

This commit is contained in:
Bernhard Schuster
2020-04-24 16:48:01 +02:00
committed by GitHub
parent 37ec3f1748
commit 8151b175bc
2 changed files with 5 additions and 1 deletions
@@ -269,6 +269,10 @@ impl sp_externalities::Externalities for ValidationExternalities {
fn commit(&mut self) { fn commit(&mut self) {
panic!("commit: unsupported feature for parachain validation") panic!("commit: unsupported feature for parachain validation")
} }
fn set_offchain_storage(&mut self, _: &[u8], _: std::option::Option<&[u8]>) {
panic!("set_offchain_storage: unsupported feature for parachain validation")
}
} }
impl sp_externalities::ExtensionStore for ValidationExternalities { impl sp_externalities::ExtensionStore for ValidationExternalities {
@@ -285,7 +285,7 @@ pub fn new_light() -> (
let blockchain = Arc::new(sc_client::light::blockchain::Blockchain::new(storage)); let blockchain = Arc::new(sc_client::light::blockchain::Blockchain::new(storage));
let backend = Arc::new(LightBackend::new(blockchain.clone())); let backend = Arc::new(LightBackend::new(blockchain.clone()));
let executor = new_native_executor(); let executor = new_native_executor();
let local_call_executor = sc_client::LocalCallExecutor::new(backend.clone(), executor, sp_core::tasks::executor(),); let local_call_executor = sc_client::LocalCallExecutor::new(backend.clone(), executor, sp_core::tasks::executor(), Default::default(),);
let call_executor = LightExecutor::new( let call_executor = LightExecutor::new(
backend.clone(), backend.clone(),
local_call_executor, local_call_executor,