[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:
parent
ac18fb119f
commit
a30ad49f63
@ -119,7 +119,10 @@ use rand::{rngs::StdRng, SeedableRng};
|
|||||||
|
|
||||||
/// Default coin selection algorithm used by [`TxBuilder`](super::tx_builder::TxBuilder) if not
|
/// Default coin selection algorithm used by [`TxBuilder`](super::tx_builder::TxBuilder) if not
|
||||||
/// overridden
|
/// 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
|
/// Result of a successful coin selection
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user