Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual sign #2

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
eosio.csv
eosio.csv
logs
9 changes: 7 additions & 2 deletions eos-testnet/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ retry() {
done
}

deploy_contract() {
cleos set contract $1 $2 -j -d -s -x 3600 > /tmp/trx
retry cleos sign -k $EOS_PRIVATE_KEY -p /tmp/trx
}

# https://eosio.stackexchange.com/a/5052/3555
curl -X POST http://127.0.0.1:8888/v1/producer/schedule_protocol_feature_activations -d '{"protocol_features_to_activate": ["0ec7e080177b2c02b278d5088611686b49d739925a92d9bfcacd7fc6b74053bd"]}'

Expand All @@ -26,11 +31,11 @@ do
cleos create account eosio ${x} $EOS_PUBLIC_KEY
done

retry cleos set contract eosio /tmp/eosio.contracts/build/contracts/eosio.system/
deploy_contract eosio /tmp/eosio.contracts/build/contracts/eosio.system/

for x in eosio.msig eosio.token eosio.wrap
do
retry cleos set contract ${x} /tmp/eosio.contracts/build/contracts/${x}/
deploy_contract ${x} /tmp/eosio.contracts/build/contracts/${x}/
done

sleep 1
Expand Down
4 changes: 4 additions & 0 deletions test_eosio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
RETRY_LIMIT=${RETRY_LIMIT:-10}
SAMPLE_SIZE=${1:-100}

rm -rf ./logs &> /dev/null
mkdir ./logs &> /dev/null

docker-compose rm -f &> /dev/null
x=0
echo timestamp,attempt,retries
Expand Down Expand Up @@ -32,5 +35,6 @@ do
echo ! Retry limit exceeded >&2
fi
echo $timestamp,$x,$y
docker logs eos-testnet &> logs/failures_${y}_run_${x}.log
((x+=1))
done