diff --git a/src/coins.rs b/src/coins.rs index 5cec286..c4b2f0c 100644 --- a/src/coins.rs +++ b/src/coins.rs @@ -171,6 +171,6 @@ impl Coins { None } } - ).take_while(move |(_,d)| {sum += d.output.value; sum < minimum}).collect() + ).take_while(move |(_,d)| {sum += d.output.value; sum <= minimum}).collect() } }