From 9e9b8fedf4eb105e84bd6b71f4c459201b274cd0 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Thu, 13 Sep 2018 20:14:57 -0700 Subject: [PATCH] Fix txgen concurrent map access issue --- client/txgen/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/txgen/main.go b/client/txgen/main.go index f8e23c8f1..74157d973 100644 --- a/client/txgen/main.go +++ b/client/txgen/main.go @@ -362,8 +362,8 @@ func main() { wg.Done() }(shardId) } - utxoPoolMutex.Unlock() wg.Wait() + utxoPoolMutex.Unlock() lock.Lock() for shardId, txs := range shardIdTxsMap { // Send the txs to corresponding shards