Skip to content

Commit 9b0d246

Browse files
committed
switch localnet back to release
1 parent d4a5165 commit 9b0d246

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/localnet.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ fi
4848

4949
if [[ $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"
5353
fi
5454

5555
echo "*** 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
5757
echo "*** Chainspec built and output to file"
5858

5959
if [ $NO_PURGE -eq 1 ]; then
6060
echo "*** Purging previous state skipped..."
6161
else
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"
6666
fi
6767

6868
echo "*** Starting localnet nodes..."
6969
alice_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

8282
bob_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

Comments
 (0)