Fix flag to disable leader-rotation (#3243)

This commit is contained in:
Sagar Dhawan
2019-03-12 16:35:13 -07:00
committed by GitHub
parent c1e726da87
commit 866d3f467f
7 changed files with 80 additions and 53 deletions

View File

@ -48,10 +48,8 @@ $solana_keygen
node_readiness=false
timeout=60
while [[ $timeout -gt 0 ]]; do
expected_output="Leader ready"
exec 42>&1
output=$($solana_wallet "${entrypoint[@]}" get-transaction-count | tee >(cat - >&42))
if [[ $output -gt 0 ]]; then
output=$($solana_wallet "${entrypoint[@]}" get-transaction-count)
if [[ -n $output ]]; then
node_readiness=true
break
fi