Fix txgen concurrent map access issue

pull/69/merge
Rongjian Lan 6 years ago
parent d997b4271f
commit 9e9b8fedf4
  1. 2
      client/txgen/main.go

@ -362,8 +362,8 @@ func main() {
wg.Done() wg.Done()
}(shardId) }(shardId)
} }
utxoPoolMutex.Unlock()
wg.Wait() wg.Wait()
utxoPoolMutex.Unlock()
lock.Lock() lock.Lock()
for shardId, txs := range shardIdTxsMap { // Send the txs to corresponding shards for shardId, txs := range shardIdTxsMap { // Send the txs to corresponding shards

Loading…
Cancel
Save