Recently I've found an edge case where a solution should be found but is not. For example, consider the following UTXO set:
{1, 2, 2.5, 4}
And, if we are looking for a target of 7, the solution ought to be: {1, 2, 4}, however, in my testing, no match is found, even though the combination is possible.
Recently I've found an edge case where a solution should be found but is not. For example, consider the following UTXO set:
{1, 2, 2.5, 4}
And, if we are looking for a target of 7, the solution ought to be:
{1, 2, 4}
, however, in my testing, no match is found, even though the combination is possible.Here is the test that should pass but fails:
see branch: https://github.com/p2pderivatives/rust-bitcoin-coin-selection/tree/bug/incorrect-solution