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.*/) {
|
if ("${NODE_NAME}" ==~ /linux.*/) {
|
||||||
sh """#!/bin/bash
|
sh """#!/bin/bash
|
||||||
for D in local_testnet0_data local_testnet1_data; do
|
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
|
done
|
||||||
"""
|
"""
|
||||||
archiveArtifacts("*.tar.bz2")
|
archiveArtifacts("*.tar.bz2")
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
## Generated at line 94
|
## Generated at line 87
|
||||||
type
|
type
|
||||||
BeaconSync* = object
|
BeaconSync* = object
|
||||||
template State*(PROTO: type BeaconSync): type =
|
template State*(PROTO: type BeaconSync): type =
|
||||||
|
|
|
@ -247,11 +247,11 @@ dump_logs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
NODES_WITH_VALIDATORS=${NODES_WITH_VALIDATORS:-4}
|
NODES_WITH_VALIDATORS=${NODES_WITH_VALIDATORS:-4}
|
||||||
BOOTSTRAP_NODE=$(( NUM_NODES - 1 ))
|
BOOTSTRAP_NODE=0
|
||||||
SYSTEM_VALIDATORS=$(( TOTAL_VALIDATORS - USER_VALIDATORS ))
|
SYSTEM_VALIDATORS=$(( TOTAL_VALIDATORS - USER_VALIDATORS ))
|
||||||
VALIDATORS_PER_NODE=$(( SYSTEM_VALIDATORS / NODES_WITH_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
|
if [[ ${NUM_NODE} == ${BOOTSTRAP_NODE} ]]; then
|
||||||
BOOTSTRAP_ARG=""
|
BOOTSTRAP_ARG=""
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue