Skip to content

Commit b5de7dd

Browse files
authored
optimize naga-dev node binary (#112)
# What This PR updates the `build_and_restart_no_sgx.sh` script to build and use release binaries instead of debug binaries. "Fixes" a stack overflow observed on `naga-dev`
1 parent d13681e commit b5de7dd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rust/lit-node/lit-node/scripts/build_and_restart_no_sgx.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ merge_rpc_config() {
1414
yq -s -y '.[0] * .[1]' "$base_cfg" "$overlay_cfg"
1515
}
1616

17-
cargo build
17+
cargo build --release
1818

1919
./scripts/multi-stop.sh
2020

@@ -39,20 +39,20 @@ fi
3939
echo "rpc-config.yaml file has $(yq -r '.chains | length' ./rpc-config.yaml) network definitions (post-update)"
4040

4141
# Dump the binary to `lit-node/lit-node` so it's in the same folder as its config files
42-
cp ../target/debug/lit_node ./
42+
cp ../target/release/lit_node ./
4343

4444
./scripts/multi-start.sh
4545

4646

4747
# also build lit-actions
4848
cd ../../lit-actions
4949

50-
cargo build
50+
cargo build --release
5151

5252
sudo systemctl stop lit-actions@{0..2}
5353

5454
sleep 2
5555

56-
cp target/debug/lit_actions .
56+
cp target/release/lit_actions .
5757

5858
sudo systemctl start lit-actions@{0..2}

0 commit comments

Comments
 (0)