mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 09:42:19 +00:00
Sharding: 10 -> numTransactions. Oops!
Former-commit-id: 7cb1a1332b05a25a14f26e05c85b7a0e5ccc7f49 [formerly ec5c5da346eea40bbb7a88b43dd07b281a593898] Former-commit-id: 58dc62b926658b526c0453c8f1cbe4a734b46317
This commit is contained in:
parent
1274411784
commit
8aa97e2c59
@ -133,7 +133,7 @@ func makeTxWithGasLimit(gl uint64) *types.Transaction {
|
||||
// Helper function to generate test that completes round trip serialization tests for a specific number of transactions.
|
||||
func runBenchTest(b *testing.B, numTransactions int) {
|
||||
var txs []*types.Transaction
|
||||
for i := 0; i < 10; i++ {
|
||||
for i := 0; i < numTransactions; i++ {
|
||||
data := make([]byte, 650)
|
||||
rand.Read(data)
|
||||
txs = append(txs, types.NewTransaction(0 /*nonce*/, common.HexToAddress("0x0") /*to*/, nil /*amount*/, 0 /*gasLimit*/, nil /*gasPrice*/, data))
|
||||
|
Loading…
Reference in New Issue
Block a user