3 Commits
Author SHA1 Message Date
yancyandMark Murch Erhardt 3400db8040 doc: add missing param description to SRD
Co-authored-by: Mark "Murch" Erhardt <murch@murch.one>
2026-01-27 13:55:32 -06:00
yancy b189a34557 test: add case where TOTAL_TRIES is exceeded yet solution remains
Show that `CoinGrider` halts searching when the number of attempts exceeds
`TOTAL_TRIES`.  To do so, show that a solution is found, then add one
more entry to the same set of inputs.  Since the search orders by
`effective_value`, the solution is constructed such that only values
with the lowest `effective_value` have the least weight.  Only the
lowest weight values will not exceed the `max_selection_weight`.
Therefore, `CoinGrinder` will not evaluate all lowest weight solutions
together before exceeding `TOTAL_TRIES` since they are last found.

This test case was inspired by a similar test for `BnB` currently
named `bnb_test`.
2025-11-05 14:22:23 -06:00
yancyandMark Murch Erhardt cc33e45789 test: improve assertion for SRD max weight test
Previously, the assertion only showed that a result was found, however
made no assertion about the quality of the result.

Remove comment about what UTXOs are selected and what are not
since the test does not reflect that.

Co-authored-by: Mark "Murch" Erhardt <murch@murch.one>
2025-07-26 16:07:13 -05:00