From 3008d0116b6d9d72e363a699da3c02229aaab5cb Mon Sep 17 00:00:00 2001 From: nolonek <183203012+nolonek@users.noreply.github.com> Date: Sat, 28 Sep 2024 14:11:33 +0200 Subject: [PATCH 1/2] Add files via upload Replace 'release' occurrences in paths to 'production' for matching with the new subtensor build --profile=production arg. --- scripts/localnet.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/localnet.sh b/scripts/localnet.sh index 850a314d8..4c15a3334 100755 --- a/scripts/localnet.sh +++ b/scripts/localnet.sh @@ -48,26 +48,26 @@ fi if [[ $BUILD_BINARY == "1" ]]; then echo "*** Building substrate binary..." - cargo build --workspace --profile=release --features "$FEATURES" --manifest-path "$BASE_DIR/Cargo.toml" + cargo build --workspace --profile=production --features "$FEATURES" --manifest-path "$BASE_DIR/Cargo.toml" echo "*** Binary compiled" fi echo "*** Building chainspec..." -"$BASE_DIR/target/release/node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN >$FULL_PATH +"$BASE_DIR/target/production/node-subtensor" build-spec --disable-default-bootnode --raw --chain $CHAIN >$FULL_PATH echo "*** Chainspec built and output to file" if [ $NO_PURGE -eq 1 ]; then echo "*** Purging previous state skipped..." else echo "*** Purging previous state..." - "$BASE_DIR/target/release/node-subtensor" purge-chain -y --base-path /tmp/bob --chain="$FULL_PATH" >/dev/null 2>&1 - "$BASE_DIR/target/release/node-subtensor" purge-chain -y --base-path /tmp/alice --chain="$FULL_PATH" >/dev/null 2>&1 + "$BASE_DIR/target/production/node-subtensor" purge-chain -y --base-path /tmp/bob --chain="$FULL_PATH" >/dev/null 2>&1 + "$BASE_DIR/target/production/node-subtensor" purge-chain -y --base-path /tmp/alice --chain="$FULL_PATH" >/dev/null 2>&1 echo "*** Previous chainstate purged" fi echo "*** Starting localnet nodes..." alice_start=( - "$BASE_DIR/target/release/node-subtensor" + "$BASE_DIR/target/production/node-subtensor" --base-path /tmp/alice --chain="$FULL_PATH" --alice @@ -80,7 +80,7 @@ alice_start=( ) bob_start=( - "$BASE_DIR"/target/release/node-subtensor + "$BASE_DIR"/target/production/node-subtensor --base-path /tmp/bob --chain="$FULL_PATH" --bob From af52203e7644059327eb3ab5077142794d510e07 Mon Sep 17 00:00:00 2001 From: nolonek <183203012+nolonek@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:33:29 +0200 Subject: [PATCH 2/2] Update localnet.sh switch off fast blocks sync --- scripts/localnet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/localnet.sh b/scripts/localnet.sh index 4c15a3334..30552567c 100755 --- a/scripts/localnet.sh +++ b/scripts/localnet.sh @@ -17,7 +17,7 @@ BASE_DIR="$SCRIPT_DIR/.." # get parameters # Get the value of fast_blocks from the first argument -fast_blocks=${1:-"True"} +fast_blocks=${1:-"False"} # Check the value of fast_blocks if [ "$fast_blocks" == "False" ]; then