Skip to content

Weight meter #459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ cargo-features = ["resolver"]
members = [
"auction",
"authority",
"bencher",
"benchmarking",
"currencies",
"gradually-update",
Expand All @@ -20,6 +21,7 @@ members = [
"xcm-support",
"unknown-tokens",
"build-script-utils",
"weight-gen",
"weight-meter",
]
resolver = "2"
Expand Down
4 changes: 0 additions & 4 deletions bencher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ version = "0.1.0"
authors = ["Laminar Developers <[email protected]>"]
edition = "2018"

[[bin]]
path = "src/bin.rs"
name = "codegen"

[dependencies]
linregress = { version = "0.4.0", optional = true }
handlebars = {version = "3.5.2", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion bencher/src/bench_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use sp_state_machine::{Ext, OverlayedChanges, StorageTransactionCache};
pub fn run<B: Block>(wasm_code: Vec<u8>) -> Vec<u8> {
let mut overlay = OverlayedChanges::default();
let mut cache = StorageTransactionCache::default();
let state = BenchmarkingState::<B>::new(Default::default(), Default::default()).unwrap();
let state = BenchmarkingState::<B>::new(Default::default(), Default::default(), false).unwrap();
let mut ext = Ext::<_, NumberFor<B>, _>::new(&mut overlay, &mut cache, &state, None, None);

let mut host_functions = benchmarking::HostFunctions::host_functions();
Expand Down
23 changes: 0 additions & 23 deletions bencher/src/template.hbs

This file was deleted.