Merge pull request #1837 from harmony-one/debug-staking

Add staking debugging tools to localnet deploy script
pull/1845/head
Daniel Van Der Maden 5 years ago committed by GitHub
commit e2955e92ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      test/deploy.sh

@ -59,6 +59,17 @@ function cleanup_and_result() {
[ -e $RESULT_FILE ] && cat $RESULT_FILE [ -e $RESULT_FILE ] && cat $RESULT_FILE
} }
function debug_staking() {
hmy_one_dir="$(go env GOPATH)/src/github.com/harmony-one"
hmy_bin="${hmy_one_dir}/go-sdk/hmy"
keystore="${hmy_one_dir}/harmony-ops/test-automation/api-tests/LocalnetValidatorKeys"
python3 -m pip install pyhmy
python3 -m pip install requests
python3 "${hmy_one_dir}/harmony-ops/test-automation/api-tests/test.py" --keystore ${keystore} \
--cli_path ${hmy_bin} --test_dir "${hmy_one_dir}/harmony-ops/test-automation/api-tests/tests/" \
--rpc_endpoint_src="http://localhost:9500/" --rpc_endpoint_dst="http://localhost:9501/" --ignore_regression_test
}
trap cleanup_and_result SIGINT SIGTERM trap cleanup_and_result SIGINT SIGTERM
function usage { function usage {
@ -192,6 +203,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
done < $config done < $config
if [ "$DOTEST" == "true" ]; then if [ "$DOTEST" == "true" ]; then
debug_staking
echo "waiting for some block rewards" echo "waiting for some block rewards"
sleep 60 sleep 60
i=1 i=1

Loading…
Cancel
Save