Skip to content

Commit e361ac3

Browse files
committed
refactor(node): use block caching feature in snarkVM
1 parent f16a4f8 commit e361ac3

File tree

7 files changed

+124
-171
lines changed

7 files changed

+124
-171
lines changed

.ci/devnet_ci.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ trap child_exit_handler CHLD
4747
# Define a trap handler that prints a message when an error occurs
4848
trap 'echo "⛔️ Error in $BASH_SOURCE at line $LINENO: \"$BASH_COMMAND\" failed (exit $?)"' ERR
4949

50-
# Flags used by all ndoes
50+
# Flags used by all nodes.
5151
common_flags=(
5252
--nodisplay --nobanner --noupdater "--network=$network_id" --verbosity=1
5353
"--dev-num-validators=$total_validators"
@@ -81,11 +81,12 @@ for ((validator_index = 0; validator_index < total_validators; validator_index++
8181
sleep 1
8282
done
8383

84-
# Start all client nodes in the background
84+
# Start all client nodes in the background.
8585
for ((client_index = 0; client_index < total_clients; client_index++)); do
86+
# compute the absolute index for this node.
8687
node_index=$((client_index + total_validators))
8788

88-
snarkos clean --dev $node_index
89+
snarkos clean "--dev=$node_index" "--network=$network_id"
8990

9091
log_file="$log_dir/client-$client_index.log"
9192
snarkos start "${common_flags[@]}" "--dev=$node_index" \

0 commit comments

Comments
 (0)