* Add BlockBackend::requires_full_sync() implementation

* do not specify --pruning explicitly

* update lockfile for {"substrate"}

* Please re-run the CI

* Please re-run the CI

Co-authored-by: Roman Gafiyatullin <rg@rgmbp-16-m1.lan>
Co-authored-by: parity-processbot <>
This commit is contained in:
Roman Gafiyatullin
2022-05-06 14:33:06 +03:00
committed by GitHub
parent 48fb8bfb4e
commit d9f6c206a9
3 changed files with 183 additions and 174 deletions
+173 -173
View File
File diff suppressed because it is too large Load Diff
+10
View File
@@ -381,6 +381,16 @@ impl sc_client_api::BlockBackend<Block> for Client {
} }
} }
} }
fn requires_full_sync(&self) -> bool {
with_client! {
self,
client,
{
client.requires_full_sync()
}
}
}
} }
impl sc_client_api::StorageProvider<Block, crate::FullBackend> for Client { impl sc_client_api::StorageProvider<Block, crate::FullBackend> for Client {
-1
View File
@@ -72,7 +72,6 @@ fn benchmark_block(runtime: &str, base_path: &Path, block: u32) -> Result<(), St
.args(["benchmark", "block", "--chain", &runtime]) .args(["benchmark", "block", "--chain", &runtime])
.arg("-d") .arg("-d")
.arg(base_path) .arg(base_path)
.args(["--pruning", "archive"])
.args(["--from", &block.to_string(), "--to", &block.to_string()]) .args(["--from", &block.to_string(), "--to", &block.to_string()])
.args(["--repeat", "1"]) .args(["--repeat", "1"])
.args(["--execution", "wasm", "--wasm-execution", "compiled"]) .args(["--execution", "wasm", "--wasm-execution", "compiled"])