@yancyribbens pointed out that SRD would fail to find a possible solution if there are multiple UTXOs of the same effective value with diverse weight.
This adds a tiebreaker that will make SRD succeed in such a scenario.
@yancyribbens pointed out that SRD would fail to find a possible solution if there are multiple UTXOs of the same effective value with diverse weight.
This adds a tiebreaker that will make SRD succeed in such a scenario.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33223.
See the guideline for information on the review process. A summary of reviews will appear here.
Possible typos and grammar issues:
drahtbot_id_4_m
1239@@ -1240,6 +1240,26 @@ BOOST_AUTO_TEST_CASE(srd_tests)
1240 BOOST_CHECK(res);
1241 BOOST_CHECK(res->GetWeight() <= max_selection_weight);
1242 }
1243+
1244+ {
1245+ // ################################################################################################################
coinselection_tests.cpp
528@@ -529,6 +529,9 @@ class MinOutputGroupComparator
529 public:
530 int operator() (const OutputGroup& group1, const OutputGroup& group2) const
531 {
Since the goal here is to use the same sort as descending_effval_weight
, L532 - L 535 can be replaced with this single line:
return descending_effval_weight(group1, group2);