-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Dump state into new genesis file #2116
Comments
Another similar feature I want is able to generate genesis file from current state. This means I can configure the testing environment once (deposit funds, deploy smart contract, doing configuration that is not possible with GenesisConfig, etc) and make a genesis file from it, and reuse it. |
Note that it is already possible to export and import blocks out of/into the database, if that's what this issue is about. |
The |
Not entirely. We still don't have checkpoints. |
not the full feature. for now, the export-state just can start the new chain from 0 height. but in fact, the best way is to start the new chain with the same height. I think it needs a lot of modification for substrate backend part, and related to some consensus part. |
According to Kusama Network's YouTube video Part 1: How to Register a Parachain on Polkadot and Kusama it should be possible to generate the genesis file and the runtime wasm file by running the following command: I tried that using the node-template however, I got an error: $ ./node-template export-genesis-state --parachain-id 21; ./node-template export-genesis-wasm > wasmfile
error: The subcommand 'export-genesis-state' wasn't recognized
Did you mean 'export-blocks' or 'export-state'? Also, when I try to run the suggested command, the % ./node-template export-state --parachain-id 2225;
error: Found argument '--parachain-id' which wasn't expected, or isn't valid in this context So my questions are:
|
@takahser you need to use the parachain node template. |
This seems existent with the |
I think substrate may need a checkpoint feature.
it could be used in follow situation
The text was updated successfully, but these errors were encountered: