Logo
Explore Help
Sign In
gaspersic/solana
1
0
Fork 0
You've already forked solana
Code Issues Pull Requests Projects Releases Wiki Activity
solana/ci/run-sanity.sh

23 lines
421 B
Bash
Raw Normal View History

Improve run.sh for better developer experience (#6945) * run.sh: Create genesis file for ad-hoc validators * run.sh: Prefer release under NDEBUG * run.sh: Add sanity test for run.sh * run.sh: Conditionally re-gen drone and faucet keys * Make shellcheck happy * Address code review comments * Clean up a bit
2019-11-16 15:56:29 +09:00
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
rm -f config/run/init-completed
timeout 15 ./run.sh &
pid=$!
Revert "Revert "add genesis stake placeholders (#6969)" (#7109)" (#7124) This reverts commit 702f7cc51d54294002b997834f9337caa7a3bdce.
2019-11-25 15:11:55 -08:00
attempts=20
Improve run.sh for better developer experience (#6945) * run.sh: Create genesis file for ad-hoc validators * run.sh: Prefer release under NDEBUG * run.sh: Add sanity test for run.sh * run.sh: Conditionally re-gen drone and faucet keys * Make shellcheck happy * Address code review comments * Clean up a bit
2019-11-16 15:56:29 +09:00
while [[ ! -f config/run/init-completed ]]; do
sleep 1
if ((--attempts == 0)); then
echo "Error: validator failed to boot"
exit 1
fi
done
curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1, "method":"validatorExit"}' http://localhost:8899
wait $pid
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 245ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API