Skip to content

Commit

Permalink
minor redundancy removed from SRD and test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoZ666 committed Oct 6, 2024
1 parent bf812ac commit 6434d1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,6 @@ pub fn select_coin_srd(
inputs: &[OutputGroup],
options: CoinSelectionOpt,
) -> Result<SelectionOutput, SelectionError> {
// Randomize the inputs order to simulate the random draw
let mut rng = thread_rng();

// In out put we need to specify the indexes of the inputs in the given order
// So keep track of the indexes when randomiz ing the vec
Expand Down Expand Up @@ -1542,8 +1540,8 @@ mod test {

#[test]
fn test_lowestlarger_successful() {
let mut inputs = setup_lowestlarger_output_groups();
let mut options = setup_options(20000);
let inputs = setup_lowestlarger_output_groups();
let options = setup_options(20000);
let result = select_coin_lowestlarger(&inputs, options);
assert!(result.is_ok());
let selection_output = result.unwrap();
Expand Down

0 comments on commit 6434d1b

Please sign in to comment.