How can I connect my old Parachain to my new Relaychain?
The first thing I did is to recreate the chainspec using export-state: (9062 is my last block)
./target/release/my-parachain export-state \
--chain my-parachain-chainspec.json \
--base-path /tmp/parachain/collator1 9062 > my-parachain-chainspec-9062.json
The next step is to generate the genesis and wasm state from the new chainspec:
./target/release/my-parachain export-genesis-state \
--chain=my-parachain-chainspec-9062.json > para-genesis-state-9062
./target/release/my-parachain export-genesis-wasm \
--chain=my-parachain-chainspec-9062.json > para-genesis-wasm-9062
Then I register the parachain. I still get an error:
2023-01-07 04:47:50 [Relaychain] 💤 Idle (3 peers), best: #30793 (0x7974…5446), finalized #30790 (0xf1f9…19e1), ⬇ 1.4kiB/s ⬆ 0.6kiB/s
2023-01-07 04:47:52 [Parachain] 💤 Idle (0 peers), best: #9062 (0xf9b8…1087), finalized #9062 (0xf9b8…1087), ⬇ 0 ⬆ 0
2023-01-07 04:47:54 [Relaychain] ✨ Imported #30794 (0x0f21…f3fc)
2023-01-07 04:47:54 [Parachain] Could not find the header of the genesis block in the database! block_hash=0x922d43a0606e6c6315c301bcbd7c27ba5c8e88f9665e85b621796c82c81ce780
Ideas on how to restore old Parachain is highly appreciated. This is a deal breaker for a Parachain, if we cannot restore data after the lease is terminated.