4848
4949if [[ $BUILD_BINARY == " 1" ]]; then
5050 echo " *** Building substrate binary..."
51- cargo build --workspace --profile=production --features " $FEATURES " --manifest-path " $BASE_DIR /Cargo.toml"
51+ cargo build --workspace --profile=release --features " $FEATURES " --manifest-path " $BASE_DIR /Cargo.toml"
5252 echo " *** Binary compiled"
5353fi
5454
5555echo " *** Building chainspec..."
56- " $BASE_DIR /target/production /node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN > $FULL_PATH
56+ " $BASE_DIR /target/release /node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN > $FULL_PATH
5757echo " *** Chainspec built and output to file"
5858
5959if [ $NO_PURGE -eq 1 ]; then
6060 echo " *** Purging previous state skipped..."
6161else
6262 echo " *** Purging previous state..."
63- " $BASE_DIR /target/production /node-subtensor" purge-chain -y --base-path /tmp/bob --chain=" $FULL_PATH " > /dev/null 2>&1
64- " $BASE_DIR /target/production /node-subtensor" purge-chain -y --base-path /tmp/alice --chain=" $FULL_PATH " > /dev/null 2>&1
63+ " $BASE_DIR /target/release /node-subtensor" purge-chain -y --base-path /tmp/bob --chain=" $FULL_PATH " > /dev/null 2>&1
64+ " $BASE_DIR /target/release /node-subtensor" purge-chain -y --base-path /tmp/alice --chain=" $FULL_PATH " > /dev/null 2>&1
6565 echo " *** Previous chainstate purged"
6666fi
6767
6868echo " *** Starting localnet nodes..."
6969alice_start=(
70- " $BASE_DIR /target/production /node-subtensor"
70+ " $BASE_DIR /target/release /node-subtensor"
7171 --base-path /tmp/alice
7272 --chain=" $FULL_PATH "
7373 --alice
@@ -80,7 +80,7 @@ alice_start=(
8080)
8181
8282bob_start=(
83- " $BASE_DIR " /target/production /node-subtensor
83+ " $BASE_DIR " /target/release /node-subtensor
8484 --base-path /tmp/bob
8585 --chain=" $FULL_PATH "
8686 --bob
0 commit comments