Browse Source

Changed transaction message size to 250 bytes

pull/1943/head
Greg Szabo 7 years ago
committed by Anton Kaliaev
parent
commit
76da726d2a
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tm-bench/transacter.go

+ 3
- 3
tm-bench/transacter.go View File

@ -192,8 +192,8 @@ func connect(host string) (*websocket.Conn, *http.Response, error) {
}
func generateTx(a int, b int, hosthash [16]byte) []byte {
// 64 byte transaction
tx := make([]byte, 64)
// 250 byte transaction
tx := make([]byte, 250)
// 0-8 connection number
binary.PutUvarint(tx[:8], uint64(a))
@ -209,7 +209,7 @@ func generateTx(a int, b int, hosthash [16]byte) []byte {
// 32-40 current time
binary.PutUvarint(tx[32:40], uint64(time.Now().Unix()))
// 40-64 random data
// 40- random data
if _, err := rand.Read(tx[40:]); err != nil {
panic(errors.Wrap(err, "failed to generate transaction"))
}


Loading…
Cancel
Save