|
|
@ -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 { |
|
|
|