Use CLI to configure max instances cache (#5177)

* Use CLI to configure max instances cache

* Fix tests

* Move default value into CLI

* Use SmallVec

* Apply review comments

* Get rid of `SmallVec`

Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
Stanislav Tkach
2020-03-11 10:43:37 +02:00
committed by GitHub
parent f21680209f
commit 93ee3104e7
23 changed files with 139 additions and 71 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ mod tests {
);
fn executor() -> sc_executor::NativeExecutor<Executor> {
sc_executor::NativeExecutor::new(sc_executor::WasmExecutionMethod::Interpreted, None)
sc_executor::NativeExecutor::new(sc_executor::WasmExecutionMethod::Interpreted, None, 8)
}
fn construct_block(
+1 -1
View File
@@ -61,7 +61,7 @@
//! backend.clone(),
//! LocalCallExecutor::new(
//! backend.clone(),
//! NativeExecutor::<LocalExecutor>::new(WasmExecutionMethod::Interpreted, None),
//! NativeExecutor::<LocalExecutor>::new(WasmExecutionMethod::Interpreted, None, 8),
//! ),
//! // This parameter provides the storage for the chain genesis.
//! &<Storage>::default(),
+1 -1
View File
@@ -367,7 +367,7 @@ mod tests {
}
fn local_executor() -> NativeExecutor<substrate_test_runtime_client::LocalExecutor> {
NativeExecutor::new(WasmExecutionMethod::Interpreted, None)
NativeExecutor::new(WasmExecutionMethod::Interpreted, None, 8)
}
#[test]
+1 -1
View File
@@ -362,7 +362,7 @@ pub mod tests {
>;
fn local_executor() -> NativeExecutor<substrate_test_runtime_client::LocalExecutor> {
NativeExecutor::new(WasmExecutionMethod::Interpreted, None)
NativeExecutor::new(WasmExecutionMethod::Interpreted, None, 8)
}
fn prepare_for_read_proof_check() -> (TestChecker, Header, StorageProof, u32) {