From 76da726d2a42661eae6035fb5468f63a374dea13 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Wed, 23 Aug 2017 14:42:54 -0400 Subject: [PATCH] Changed transaction message size to 250 bytes --- tm-bench/transacter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tm-bench/transacter.go b/tm-bench/transacter.go index ebe07a149..320b2078f 100644 --- a/tm-bench/transacter.go +++ b/tm-bench/transacter.go @@ -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")) }