Skip to content

Commit c79f277

Browse files
committed
Take the testnet dir as an argument
1 parent 559c8c4 commit c79f277

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/local_testnet/beacon_node.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ quic_port=${@:$OPTIND+2:1}
4848
http_port=${@:$OPTIND+3:1}
4949
execution_endpoint=${@:$OPTIND+4:1}
5050
execution_jwt=${@:$OPTIND+5:1}
51+
testnet_dir=${@:$OPTIND+6:1}
5152

5253
exec $lighthouse_binary \
5354
--debug-level $DEBUG_LEVEL \
5455
bn \
5556
$SUBSCRIBE_ALL_SUBNETS \
5657
--datadir $data_dir \
57-
--testnet-dir $TESTNET_DIR \
58+
--testnet-dir $testnet_dir \
5859
--enable-private-discovery \
5960
--disable-peer-scoring \
6061
--staking \

scripts/local_testnet/start_local_testnet.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ sleeping 20
135135
for (( bn=1; bn<=$BN_COUNT; bn++ )); do
136136
secret=$DATADIR/geth_datadir$bn/geth/jwtsecret
137137
echo $secret
138-
execute_command_add_PID beacon_node_$bn.log ./beacon_node.sh $SAS -d $DEBUG_LEVEL $DATADIR/node_$bn $((BN_udp_tcp_base + $bn)) $((BN_udp_tcp_base + $bn + 100)) $((BN_http_port_base + $bn)) http://localhost:$((EL_base_auth_http + $bn)) $secret
138+
execute_command_add_PID beacon_node_$bn.log ./beacon_node.sh $SAS -d $DEBUG_LEVEL $DATADIR/node_$bn $((BN_udp_tcp_base + $bn)) $((BN_udp_tcp_base + $bn + 100)) $((BN_http_port_base + $bn)) http://localhost:$((EL_base_auth_http + $bn)) $secret $TESTNET_DIR
139139
done
140140

141141
# Start requested number of validator clients

0 commit comments

Comments
 (0)