Restart test without supermajority (#17808)

* Restart test without supermajority

* Change check to look at stake rather than transaction confirmation

* Add stake info while waiting for consensus

* replace jq with grep (buildkite doesn't have jq installed)
This commit is contained in:
Ashwin Sekar
2021-06-10 12:56:31 -07:00
committed by GitHub
parent 6a2aec1047
commit 027ac3c8f2
3 changed files with 36 additions and 9 deletions

View File

@ -96,6 +96,20 @@ function get_bootstrap_validator_ip_address {
echo "${validatorIpList[0]}"
}
function get_active_stake {
source "${REPO_ROOT}"/net/common.sh
loadConfigFile
ssh "${sshOptions[@]}" "${validatorIpList[0]}" \
'$HOME/.cargo/bin/solana --url http://127.0.0.1:8899 validators --output=json | grep -o "totalActiveStake\": [0-9]*" | cut -d: -f2'
}
function get_current_stake {
source "${REPO_ROOT}"/net/common.sh
loadConfigFile
ssh "${sshOptions[@]}" "${validatorIpList[0]}" \
'$HOME/.cargo/bin/solana --url http://127.0.0.1:8899 validators --output=json | grep -o "totalCurrentStake\": [0-9]*" | cut -d: -f2'
}
function collect_performance_statistics {
execution_step "Collect performance statistics about run"
declare q_mean_tps='