Merge branch 'r3_txs_throttle' of github.com:denniswon/harmony into r3_txs_throttle

pull/1319/head
Dennis Won 5 years ago
commit 1234b99a1d
  1. 69
      cmd/client/wallet_stress_test/generated_wallet.ini.go
  2. 2
      cmd/client/wallet_stress_test/main.go

@ -4,45 +4,84 @@ const (
defaultWalletIni = `[default] defaultWalletIni = `[default]
bootnode = /ip4/100.26.90.187/tcp/9874/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv bootnode = /ip4/100.26.90.187/tcp/9874/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv
bootnode = /ip4/54.213.43.194/tcp/9874/p2p/QmZJJx6AdaoEkGLrYG4JeLCKeCKDjnFz2wfHNHxAqFSGA9 bootnode = /ip4/54.213.43.194/tcp/9874/p2p/QmZJJx6AdaoEkGLrYG4JeLCKeCKDjnFz2wfHNHxAqFSGA9
bootnode = /ip4/13.113.101.219/tcp/12019/p2p/QmQayinFSgMMw5cSpDUiD9pQ2WeP6WNmGxpZ6ou3mdVFJX
bootnode = /ip4/99.81.170.167/tcp/12019/p2p/QmRVbTpEYup8dSaURZfF6ByrMTSKa4UyUzJhSjahFzRqNj
shards = 4 shards = 4
[default.shard0.rpc] [default.shard0.rpc]
rpc = l0.t.hmny.io:14555 rpc = l0.t.hmny.io:14555
rpc = s0.t.hmny.io:14555 rpc = s0.t.hmny.io:14555
[default.shard1.rpc] [default.shard1.rpc]
rpc = l1.t.hmny.io:14555 rpc = l1.t.hmny.io:14555
rpc = s1.t.hmny.io:14555 rpc = s1.t.hmny.io:14555
[default.shard2.rpc] [default.shard2.rpc]
rpc = l2.t.hmny.io:14555 rpc = l2.t.hmny.io:14555
rpc = s2.t.hmny.io:14555 rpc = s2.t.hmny.io:14555
[default.shard3.rpc] [default.shard3.rpc]
rpc = l3.t.hmny.io:14555 rpc = l3.t.hmny.io:14555
rpc = s3.t.hmny.io:14555 rpc = s3.t.hmny.io:14555
[local] [local]
bootnode = /ip4/127.0.0.1/tcp/19876/p2p/Qmc1V6W7BwX8Ugb42Ti8RnXF1rY5PF7nnZ6bKBryCgi6cv bootnode = /ip4/127.0.0.1/tcp/19876/p2p/Qmc1V6W7BwX8Ugb42Ti8RnXF1rY5PF7nnZ6bKBryCgi6cv
shards = 2 shards = 2
[local.shard0.rpc] [local.shard0.rpc]
rpc = 127.0.0.1:14555 rpc = 127.0.0.1:14555
rpc = 127.0.0.1:14557 rpc = 127.0.0.1:14557
rpc = 127.0.0.1:14559 rpc = 127.0.0.1:14559
[local.shard1.rpc] [local.shard1.rpc]
rpc = 127.0.0.1:14556 rpc = 127.0.0.1:14556
rpc = 127.0.0.1:14558 rpc = 127.0.0.1:14558
rpc = 127.0.0.1:14560 rpc = 127.0.0.1:14560
[devnet]
bootnode = /ip4/100.26.90.187/tcp/9871/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv [beta]
bootnode = /ip4/54.213.43.194/tcp/9871/p2p/QmRVbTpEYup8dSaURZfF6ByrMTSKa4UyUzJhSjahFzRqNj bootnode = /ip4/54.213.43.194/tcp/9868/p2p/QmZJJx6AdaoEkGLrYG4JeLCKeCKDjnFz2wfHNHxAqFSGA9
bootnode = /ip4/100.26.90.187/tcp/9868/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv
bootnode = /ip4/13.113.101.219/tcp/12018/p2p/QmQayinFSgMMw5cSpDUiD9pQ2WeP6WNmGxpZ6ou3mdVFJX
shards = 4 shards = 4
[devnet.shard0.rpc]
rpc = l0.t1.hmny.io:14555 [beta.shard0.rpc]
rpc = s0.t1.hmny.io:14555 rpc = l0.b.hmny.io:14555
[devnet.shard1.rpc] rpc = s0.b.hmny.io:14555
rpc = l1.t1.hmny.io:14555
rpc = s1.t1.hmny.io:14555 [beta.shard1.rpc]
[devnet.shard2.rpc] rpc = l1.b.hmny.io:14555
rpc = l2.t1.hmny.io:14555 rpc = s1.b.hmny.io:14555
rpc = s2.t1.hmny.io:14555
[devnet.shard3.rpc] [beta.shard2.rpc]
rpc = l3.t1.hmny.io:14555 rpc = l2.b.hmny.io:14555
rpc = s3.t1.hmny.io:14555 rpc = s2.b.hmny.io:14555
[beta.shard3.rpc]
rpc = l3.b.hmny.io:14555
rpc = s3.b.hmny.io:14555
[pangaea]
bootnode = /ip4/100.26.90.187/tcp/9867/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv
bootnode = /ip4/54.213.43.194/tcp/9867/p2p/QmZJJx6AdaoEkGLrYG4JeLCKeCKDjnFz2wfHNHxAqFSGA9
bootnode = /ip4/13.113.101.219/tcp/9867/p2p/QmQayinFSgMMw5cSpDUiD9pQ2WeP6WNmGxpZ6ou3mdVFJX
bootnode = /ip4/99.81.170.167/tcp/9867/p2p/QmRVbTpEYup8dSaURZfF6ByrMTSKa4UyUzJhSjahFzRqNj
shards = 4
[pangaea.shard0.rpc]
rpc = l0.p.hmny.io:14555
rpc = s0.p.hmny.io:14555
[pangaea.shard1.rpc]
rpc = l1.p.hmny.io:14555
rpc = s1.p.hmny.io:14555
[pangaea.shard2.rpc]
rpc = l2.p.hmny.io:14555
rpc = s2.p.hmny.io:14555
[pangaea.shard3.rpc]
rpc = l3.p.hmny.io:14555
rpc = s3.p.hmny.io:14555
` `
) )

@ -268,7 +268,7 @@ func processStressTestCommand() {
receiverBalance := receiverState.balance receiverBalance := receiverState.balance
// amount 1/10th of the balance // amount 1/10th of the balance
amountBigInt := senderBalance.Div(senderBalance, big.NewInt(1)) amountBigInt := senderBalance.Div(senderBalance, big.NewInt(10))
fmt.Printf("\nsender: balance (shard %d: %s, nonce: %v)\n", shardID, convertBalanceIntoReadableFormat(senderBalance), senderState.nonce) fmt.Printf("\nsender: balance (shard %d: %s, nonce: %v)\n", shardID, convertBalanceIntoReadableFormat(senderBalance), senderState.nonce)
fmt.Printf("receiver balance (shard %d: %s, nonce: %v)\n", shardID, convertBalanceIntoReadableFormat(receiverBalance), receiverState.nonce) fmt.Printf("receiver balance (shard %d: %s, nonce: %v)\n", shardID, convertBalanceIntoReadableFormat(receiverBalance), receiverState.nonce)

Loading…
Cancel
Save