| 260 | UtxoData utxoData; |
| 261 | |
| 262 | UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &utxoSet) { |
| 263 | assert(utxoSet.size()); |
| 264 | auto utxoSetIt = utxoSet.lower_bound(COutPoint(InsecureRand256(), 0)); |
| 265 | if (utxoSetIt == utxoSet.end()) { |
| 266 | utxoSetIt = utxoSet.begin(); |
| 267 | } |
| 268 | auto utxoDataIt = utxoData.find(*utxoSetIt); |
| 269 | assert(utxoDataIt != utxoData.end()); |
| 270 | return utxoDataIt; |
| 271 | } |
| 272 | |
| 273 | |
| 274 | // This test is similar to the previous test |
no test coverage detected