launch_local_testnet.sh: make node 0 the bootstrap node

This commit is contained in:
Ștefan Talpalaru 2020-07-16 19:04:57 +02:00
parent 8b01284b0e
commit ffd4bc1dd4
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
3 changed files with 4 additions and 4 deletions

2
Jenkinsfile vendored
View File

@ -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")

View File

@ -1,5 +1,5 @@
## Generated at line 94
## Generated at line 87
type
BeaconSync* = object
template State*(PROTO: type BeaconSync): type =

View File

@ -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