[wallet] Use the branch-and-bound cs by default

Keep the `LargestFirst` coin selection for the tests, to make them more
predictable.
This commit is contained in:
Alekos Filini committed 2020-11-16 14:08:04 +01:00
1 parent ac18fb119f
commit a30ad49f63
1 file changed
+4 -1
+4 -1
View File
@@ -119,7 +119,10 @@ use rand::{rngs::StdRng, SeedableRng};
/// Default coin selection algorithm used by [`TxBuilder`](super::tx_builder::TxBuilder) if not
/// overridden
pub type DefaultCoinSelectionAlgorithm = LargestFirstCoinSelection;
#[cfg(not(test))]
pub type DefaultCoinSelectionAlgorithm = BranchAndBoundCoinSelection;
#[cfg(test)]
pub type DefaultCoinSelectionAlgorithm = LargestFirstCoinSelection; // make the tests more predictable
/// Result of a successful coin selection
#[derive(Debug)]