mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
frame-benchmarking-cli: Remove native dispatch requirement (#14474)
* frame-benchmarking-cli: Remove native dispatch requirement No need for this, we can just use the `WasmExecutor` directly. * Fixes * Pass benchmarking host functions * Ensure we can pass custom host functions
This commit is contained in:
@@ -124,7 +124,7 @@ pub fn run() -> sc_cli::Result<()> {
|
||||
)
|
||||
}
|
||||
|
||||
cmd.run::<Block, service::ExecutorDispatch>(config)
|
||||
cmd.run::<Block, ()>(config)
|
||||
},
|
||||
BenchmarkCmd::Block(cmd) => {
|
||||
let PartialComponents { client, .. } = service::new_partial(&config)?;
|
||||
|
||||
@@ -58,6 +58,7 @@ sp-keystore = { version = "0.27.0", path = "../../../primitives/keystore" }
|
||||
sp-consensus = { version = "0.10.0-dev", path = "../../../primitives/consensus/common" }
|
||||
sp-transaction-storage-proof = { version = "4.0.0-dev", path = "../../../primitives/transaction-storage-proof" }
|
||||
sp-io = { path = "../../../primitives/io" }
|
||||
sp-statement-store = { path = "../../../primitives/statement-store" }
|
||||
|
||||
# client dependencies
|
||||
sc-client-api = { version = "4.0.0-dev", path = "../../../client/api" }
|
||||
|
||||
@@ -117,7 +117,7 @@ pub fn run() -> Result<()> {
|
||||
)
|
||||
}
|
||||
|
||||
cmd.run::<Block, ExecutorDispatch>(config)
|
||||
cmd.run::<Block, sp_statement_store::runtime_api::HostFunctions>(config)
|
||||
},
|
||||
BenchmarkCmd::Block(cmd) => {
|
||||
// ensure that we keep the task manager alive
|
||||
|
||||
Reference in New Issue
Block a user