-
Notifications
You must be signed in to change notification settings - Fork 89
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
Easiest way to run with just a runtime #796
Comments
The thing is a wasm is only the runtime code, it doesn't include other necessary states to operate the chain. There is a new set of runtime API to populate genesis state so we maybe able to use it but it is not yet used as the runtime API wasn't super stable last time I checked.
I think one improvement we can do is that to have a special mode that generate the chain spec file using the runtime API if available to avoid require the user to do it with chain spec builder. But that is basically embedding the chain spec builder in Chopsticks, which is fine, but kinda one more duplicated work. |
Got it. Then excuse my nitpicking, but I would have called this
I agree. I think for Chopsticks using FYI, this is my vision for omni-node-driven development. I am completing the steps needed for this + will do some workshops and tutorials on it. Lmk if you have further ideas. Omni Tutorial
|
#797 will support |
Thanks for the quick fix |
I am looking for an easy way to start the For what is worth, I tried running something like below (where npx @acala-network/chopsticks --chain-spec chain_spec.json Error:
Do I need a |
the error is the runtime is built with benchmarking feature, which expects some unimplemented host functions (ext_benchmarking_add_to_whitelist_version_1). you can either built the chain spec without benchmarking feature, or add |
Thanks @xlc ! This unblocked me. |
It seems like the 'fastest' way to run, given just a
.wasm
file is still to:config.yaml
file--genesis chain_spec.json
(which only works in--raw
format) which is then used to fetch the code.Two comments on this:
runtime-path
inconfig.yarml
, or your CLI, and that wasm blob will be used?--genesis
is somewhat unclear to me. Is it a chain-spec file? and if it defines storage, which one takes precedence over the storage overrides defined inconfig.yaml
?The text was updated successfully, but these errors were encountered: