I am using export-state to copy a parachain running in production environment to development with all the configuration and blocks data. I am following these steps. Can any one please review the steps, if I am missing any thing. Since when I run the parachain in development, it does not produce blocks:
- I executed a command similar to the following in against production parachain node to generate its chain specs with the current state:
./target/release/my-node export-state --chain=raw-parachain-chainspec.json --base-path /tmp/para/ali > new_chainspc.json
- Generate genesis state file:
./target/release/my-node export-genesis-state --chain=new_chainspc.json > new-genesis
- Generate wasm:
./target/release/my-node export-genesis-wasm --chain=new_chainspc.json > new_wasm
- I spin two nodes of polkadot relaychian using follwoing commands in my development envirnoment:
./target/release/polkadot \
--alice \
--validator \
--base-path /tmp/relay/ali \
--chain ~/polkadot/polkadot/tmp/raw-local-chainspec.json \
--port 30333 --ws-port 9944 \
--unsafe-rpc-external --unsafe-ws-external --rpc-cors=all
./target/release/polkadot \
--bob \
--validator \
--base-path /tmp/relay/bob \
--chain ~/polkadot/polkadot/tmp/raw-local-chainspec.json \
--port 30334 --ws-port 9945 \
--unsafe-rpc-external --unsafe-ws-external --rpc-cors=all
- I run my parachain collator using the following command:
./target/release/my-node \
--collator \
--chain new_chainspc.json \
--port 40333 --ws-port 8844 --rpc-port 8833 \
--base-path /tmp/para/ali \
--unsafe-rpc-external --unsafe-ws-external \
--rpc-cors=all --rpc-methods=Unsafe \
--node-key 7a9c984f2254f80eb54e09ab9f37b41261b1cf6ba230cff6ff7982e78e4584b6 \
-- \
--execution wasm \
--chain raw-local-chainspec.json \
--port 30343 --ws-port 9977 \
--unsafe-rpc-external --unsafe-ws-external \
--rpc-cors=all
- Registered parachain with relay chain using new_genesis and new_wasm generated above.
After performing all these steps, the relaychain start producing blocks but no parachain blocks are produced. Am I missing some important piece of info?