Integrated use of netem with testnet scripts (#6746)

automerge
This commit is contained in:
Pankaj Garg
2019-11-05 15:04:06 -08:00
committed by Grimes
parent 8f91b5aab3
commit 8993b15248
3 changed files with 38 additions and 0 deletions

View File

@ -26,6 +26,7 @@ genesisOptions="${17}"
extraNodeArgs="${18}"
gpuMode="${19:-auto}"
GEOLOCATION_API_KEY="${20}"
netemConfig="${21}"
set +x
# Use a very large stake (relative to the default multinode-demo/ stake of 42)
@ -147,6 +148,11 @@ cat >> ~/solana/on-reboot <<EOF
echo "Expected GPU, found none!"
export SOLANA_GPU_MISSING=1
fi
if [[ -n "$netemConfig" ]]; then
scripts/netem.sh add "$netemConfig"
echo "$netemConfig" > netem.cfg
fi
EOF
case $nodeType in