Sign inSign up

deadlock/eos-tps

By deadlock

•Updated over 7 years ago

Image
0

4.1K

deadlock/eos-tps repository overview

https://github.com/eosiosg/eos/tree/eos-v1.6.2-tps/plugins/txn_test_gen_plugin⁠

test accounts:
aaaaaaaaaaaa bbbbbbbbbbbb cccccccccccc

create account:
curl --data-binary '["voter", "5KE3vxAZ5tBXubjMeFJ9uCHHjfQeAzDqPLeW4XHGVcuKHPPLCrA", "EOS"]' http://127.0.0.1:8888/v1/txn_test_gen/create_test_accounts⁠

delegate cpu and net
cleos -u http://api-boscore-lib-testnet-ali-boscore-bp-cluster-ap-southeast-1.eosio.sg⁠ system delegatebw voter aaaaaaaaaaaa "10000000 EOS" "10000000 EOS"
cleos -u http://api-boscore-lib-testnet-ali-boscore-bp-cluster-ap-southeast-1.eosio.sg⁠ system delegatebw voter bbbbbbbbbbbb "10000000 EOS" "10000000 EOS"

start tps:
curl --data-binary '["", 20, 20]' http://127.0.0.1:8888/v1/txn_test_gen/start_generation⁠

stop tps:
curl --data-binary '["", 20, 20]' http://127.0.0.1:8888/v1/txn_test_gen/stop_generation⁠

enable tps plugin:
--plugin=eosio::txn_test_gen_plugin

in case insufficient token in a long running test
private key for cccccccccccc is 5KNUvU1WkzumZs3qmG9JFWDwkVX6L6jnMKisDtoGEbrxACzxk6T
cleos $remote push action cccccccccccc issue '["cccccccccccc", "100000000.0000 CUR",""]' -p cccccccccccc
cleos $remote transfer -c cccccccccccc cccccccccccc aaaaaaaaaaaa "1000000 CUR" ""
cleos $remote transfer -c cccccccccccc cccccccccccc bbbbbbbbbbbb "1000000 CUR" ""

Tag summary

Content type

Image

Digest

Size

71.4 MB

Last updated

over 7 years ago

docker pull deadlock/eos-tps