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

@ -98,11 +98,8 @@ UTXOLOOP:
for index, value := range utxoMap {
txInfo.index = index
txInfo.value = value
if txInfo.txCount >= setting.maxNumTxsPerBatch {
break UTXOLOOP
}
randNum := rand.Intn(100)
randNum := rand.Intn(100)
// 30% sample rate to select UTXO to use for new transactions
if randNum >= 30 {
continue
@ -112,6 +109,9 @@ UTXOLOOP:
} else {
generateSingleShardTx(txInfo)
}
if txInfo.txCount >= setting.maxNumTxsPerBatch {
break UTXOLOOP
}
}
}
}

Loading…
Cancel
Save