subscribe to all subnets in minimal local testnet (#2799)

This commit is contained in:
Jacek Sieka 2021-08-20 16:41:16 +02:00 committed by GitHub
parent ff3766e79b
commit a67970e9a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -416,6 +416,14 @@ for NUM_NODE in $(seq 0 $(( NUM_NODES - 1 ))); do
BOOTSTRAP_ARG="--netkey-file=${NETWORK_KEYFILE} --insecure-netkey-password=true --subscribe-all-subnets" BOOTSTRAP_ARG="--netkey-file=${NETWORK_KEYFILE} --insecure-netkey-password=true --subscribe-all-subnets"
else else
BOOTSTRAP_ARG="--bootstrap-file=${BOOTSTRAP_ENR}" BOOTSTRAP_ARG="--bootstrap-file=${BOOTSTRAP_ENR}"
if [[ "${CONST_PRESET}" == "minimal" ]]; then
# The fast epoch and slot times in the minimal config might cause the
# mesh to break down due to re-subscriptions happening within the prune
# backoff time
BOOTSTRAP_ARG="${BOOTSTRAP_ARG} --subscribe-all-subnets"
fi
# Wait for the master node to write out its address file # Wait for the master node to write out its address file
START_TIMESTAMP=$(date +%s) START_TIMESTAMP=$(date +%s)
while [[ ! -f "${BOOTSTRAP_ENR}" ]]; do while [[ ! -f "${BOOTSTRAP_ENR}" ]]; do