-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Is it possible to enable runtime-benchmarks
in node-template
#6644
Comments
Check this code to see if it helps. |
@kaichaosun Thank you very much! 😄 let me have a look and try. |
@kaichaosun Hi. Thanks for your helpful response. I followed your PR and did another try again. However, I still encouter the previous question. Do you have any idea about the following error message?
The stack trace is
I carefully check the differences between the demo PR and my implementation. One major difference is that we're based on 2.0.0-rc4. The second is we have two substrate/bin/node/cli/src/cli.rs Line 34 in b06a383
Appreciate any hint or suggestion. 🙏 |
@myronfanqiu This is something that was resolved with this PR: Unfortunately RC-4 does not have this PR. So you will need to either bump or rollback your substrate version to get this working. |
@shawntabrizi Thanks for this information. I have two more questions about this issue.
|
@kaichaosun Thank you very much! Your solution works on rc2. Let me try one more latest dev version. |
@shawntabrizi I double checked the commit history. It seems like that the #6513 is ahead of rc4 release PR #6515 and should be in rc4. Do I miss anything? |
This commit fd55c45 which was ten days ago works for me as well. Thanks for all your help!!! 😄. Appreciate any ETA for the new version. |
New release is blocked by a Rust issue mentioned here. |
We built our work based on node-template months ago. Now, we plan to enable benchmark for our runtime and calculate accurate weight for each extrinsics.
However, the doc for benchmark is quite insufficient. I followed substrate's code and added related code into our repo. However, I met several issues, such as #5587,
panic
at this linesubstrate/primitives/state-machine/src/lib.rs
Line 333 in 60e3a69
Error: Input("Error executing runtime benchmark: Other(\"Instantiation: Export ext_benchmarking_commit_db_version_1 not found\")")
. The PR's commit history for benchmark is quite complex and not easy to follow.Is there any doc introducing how to enable benchmark in runtime and cli? Is it possilbe to enable
runtime-bencharks
in node-template?The text was updated successfully, but these errors were encountered: