We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ec31b commit 341b869Copy full SHA for 341b869
src/wallet/coin_selection.rs
@@ -868,7 +868,7 @@ mod test {
868
vec![utxo; utxos_number]
869
}
870
871
- fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut Vec<WeightedUtxo>) -> u64 {
+ fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut [WeightedUtxo]) -> u64 {
872
let utxos_picked_len = rng.gen_range(2..utxos.len() / 2);
873
utxos.shuffle(&mut rng);
874
utxos[..utxos_picked_len]
0 commit comments