Migration E2E Testing (TestNet)
1
2
Export Morse TestNet State
Set the snapshot height and date (replace with actual values):
export TESTNET_SNAPSHOT_HEIGHT="176966"
export TESTNET_SNAPSHOT_DATE="2025-05-09"
export MORSE_TESTNET_STATE_EXPORT_PATH="./morse_state_export_${TESTNET_SNAPSHOT_HEIGHT}_${TESTNET_SNAPSHOT_DATE}.json"Export the state (update --datadir if your snapshot path is different):
pocket --datadir="$HOME/morse-testnet-snapshot" util export-genesis-for-reset "$TESTNET_SNAPSHOT_HEIGHT" pocket > "$MORSE_TESTNET_STATE_EXPORT_PATH"3
4
Merge Morse MainNet & TestNet States
Merge the Morse MainNet and TestNet state exports into a single file:
export MSG_IMPORT_MORSE_ACCOUNTS_PATH="./msg_import_morse_accounts_m${MAINNET_SNAPSHOT_HEIGHT}_t${TESTNET_SNAPSHOT_HEIGHT}.json"
pocketd tx migration collect-morse-accounts \
"$MORSE_MAINNET_STATE_EXPORT_PATH" "$MSG_IMPORT_MORSE_ACCOUNTS_PATH" \
--merge-state="$MORSE_TESTNET_STATE_EXPORT_PATH"Replace
${MAINNET_SNAPSHOT_HEIGHT}and${TESTNET_SNAPSHOT_HEIGHT}with your actual values.Result:
msg_import_morse_accounts_m<MAINNET_SNAPSHOT_HEIGHT>_t<TESTNET_SNAPSHOT_HEIGHT>.jsonis ready for import.
Was this helpful?
