pull/49/head
Richard Liu 6 years ago
parent 6d6742cd2d
commit 1d4908af83
  1. 2
      client/txgen/main.go

@ -84,6 +84,7 @@ func generateSimulatedTransactions(shardId int, dataNodes []*node.Node) ([]*bloc
UTXOLOOP: UTXOLOOP:
// Loop over all addresses // Loop over all addresses
for address, txMap := range dataNodes[shardId].UtxoPool.UtxoMap { for address, txMap := range dataNodes[shardId].UtxoPool.UtxoMap {
txInfo.address = address
// Loop over all txIds for the address // Loop over all txIds for the address
for txIdStr, utxoMap := range txMap { for txIdStr, utxoMap := range txMap {
// Parse TxId // Parse TxId
@ -92,7 +93,6 @@ UTXOLOOP:
continue continue
} }
copy(txInfo.id[:], id[:]) copy(txInfo.id[:], id[:])
txInfo.address = address
// Loop over all utxos for the txId // Loop over all utxos for the txId
for index, value := range utxoMap { for index, value := range utxoMap {

Loading…
Cancel
Save