launch_local_testnet.sh: make node 0 the bootstrap node
This commit is contained in:
parent
8b01284b0e
commit
ffd4bc1dd4
|
@ -56,7 +56,7 @@ def runStages() {
|
|||
if ("${NODE_NAME}" ==~ /linux.*/) {
|
||||
sh """#!/bin/bash
|
||||
for D in local_testnet0_data local_testnet1_data; do
|
||||
[[ -d "\$D" ]] && tar cjf "\${D}.tar.bz2" "\${D}"/*.txt
|
||||
[[ -d "\$D" ]] && tar cjf "\${D}.tar.bz2" "\${D}"/*.txt || true
|
||||
done
|
||||
"""
|
||||
archiveArtifacts("*.tar.bz2")
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
## Generated at line 94
|
||||
## Generated at line 87
|
||||
type
|
||||
BeaconSync* = object
|
||||
template State*(PROTO: type BeaconSync): type =
|
||||
|
|
|
@ -247,11 +247,11 @@ dump_logs() {
|
|||
}
|
||||
|
||||
NODES_WITH_VALIDATORS=${NODES_WITH_VALIDATORS:-4}
|
||||
BOOTSTRAP_NODE=$(( NUM_NODES - 1 ))
|
||||
BOOTSTRAP_NODE=0
|
||||
SYSTEM_VALIDATORS=$(( TOTAL_VALIDATORS - USER_VALIDATORS ))
|
||||
VALIDATORS_PER_NODE=$(( SYSTEM_VALIDATORS / NODES_WITH_VALIDATORS ))
|
||||
|
||||
for NUM_NODE in $(seq $BOOTSTRAP_NODE -1 0); do
|
||||
for NUM_NODE in $(seq 0 $(( NUM_NODES - 1 ))); do
|
||||
if [[ ${NUM_NODE} == ${BOOTSTRAP_NODE} ]]; then
|
||||
BOOTSTRAP_ARG=""
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue