diff --git a/fendermint/testing/graph-test/scripts/init.sh b/fendermint/testing/graph-test/scripts/init.sh index 461ccfa3e1..8fc376fb1d 100755 --- a/fendermint/testing/graph-test/scripts/init.sh +++ b/fendermint/testing/graph-test/scripts/init.sh @@ -7,6 +7,7 @@ set -e KEYS_DIR=/data/keys CMT_DIR=/data/${NODE_NAME}/cometbft GENESIS_FILE=/data/genesis.json +SEALED_GENESIS_FILE=/data/sealed.car # Create a genesis file fendermint \ @@ -47,10 +48,20 @@ fendermint \ genesis --genesis-file $GENESIS_FILE \ add-validator --public-key $KEYS_DIR/$VALIDATOR_NAME.pk --power 1 +# Seal the genesis state +fendermint \ + genesis --genesis-file $GENESIS_FILE \ + ipc \ + seal-state \ + --builtin-actors-path /fendermint/bundle.car \ + --custom-actors-path /fendermint/custom_actors_bundle.car \ + --artifacts-path /fendermint/contracts \ + --output-path "${SEALED_GENESIS_FILE}" + # Convert FM genesis to CMT fendermint \ genesis --genesis-file $GENESIS_FILE \ - into-tendermint --out $CMT_DIR/config/genesis.json + into-tendermint --out $CMT_DIR/config/genesis.json --sealed "${SEALED_GENESIS_FILE}" # Copy the default validator key cp $KEYS_DIR/$VALIDATOR_NAME.priv_validator_key.json \ diff --git a/fendermint/testing/smoke-test/scripts/init.sh b/fendermint/testing/smoke-test/scripts/init.sh index 1ccbcc77dc..c3fa8d63a5 100755 --- a/fendermint/testing/smoke-test/scripts/init.sh +++ b/fendermint/testing/smoke-test/scripts/init.sh @@ -7,6 +7,7 @@ set -e KEYS_DIR=/data/keys CMT_DIR=/data/${NODE_NAME}/cometbft GENESIS_FILE=/data/genesis.json +SEALED_GENESIS_FILE=/data/sealed.car # Create a genesis file fendermint \ @@ -63,10 +64,20 @@ fendermint \ --msg-fee 10 \ --majority-percentage 66 +# Seal the genesis state +fendermint \ + genesis --genesis-file $GENESIS_FILE \ + ipc \ + seal-state \ + --builtin-actors-path /fendermint/bundle.car \ + --custom-actors-path /fendermint/custom_actors_bundle.car \ + --artifacts-path /fendermint/contracts \ + --output-path "${SEALED_GENESIS_FILE}" + # Convert FM genesis to CMT fendermint \ genesis --genesis-file $GENESIS_FILE \ - into-tendermint --out $CMT_DIR/config/genesis.json + into-tendermint --out $CMT_DIR/config/genesis.json --sealed "${SEALED_GENESIS_FILE}" # Convert FM validator key to CMT fendermint \ diff --git a/fendermint/testing/snapshot-test/scripts/init.sh b/fendermint/testing/snapshot-test/scripts/init.sh index 011bbfa75d..9e75058d99 100755 --- a/fendermint/testing/snapshot-test/scripts/init.sh +++ b/fendermint/testing/snapshot-test/scripts/init.sh @@ -7,6 +7,7 @@ set -e KEYS_DIR=/data/keys CMT_DIR=/data/${NODE_NAME}/cometbft GENESIS_FILE=/data/genesis.json +SEALED_GENESIS_FILE=/data/sealed.car # Create a genesis file fendermint \ @@ -42,10 +43,20 @@ fendermint \ genesis --genesis-file $GENESIS_FILE \ add-validator --public-key $KEYS_DIR/$VALIDATOR_NAME.pk --power 1 +# Seal the genesis state +fendermint \ + genesis --genesis-file $GENESIS_FILE \ + ipc \ + seal-state \ + --builtin-actors-path /fendermint/bundle.car \ + --custom-actors-path /fendermint/custom_actors_bundle.car \ + --artifacts-path /fendermint/contracts \ + --output-path "${SEALED_GENESIS_FILE}" + # Convert FM genesis to CMT fendermint \ genesis --genesis-file $GENESIS_FILE \ - into-tendermint --out $CMT_DIR/config/genesis.json + into-tendermint --out $CMT_DIR/config/genesis.json --sealed "${SEALED_GENESIS_FILE}" # Copy the default validator key cp $KEYS_DIR/$VALIDATOR_NAME.priv_validator_key.json \