test: SRD tie-break test

bitcoin/bitcoin: PR #36740

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

The review is inconclusive; no findings were published.

Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

The lower-weight tie-break was introduced to prevent SRD from missing an available solution when multiple UTXOs have equal effective value but different weights. The intended guarantee is preservation of the lighter alternatives during weight-constrained eviction—not a general guarantee that SRD finds every feasible selection.

The original PR explicitly identifies equal-effective-value, diverse-weight inputs as the failure scenario. Thus, the regression needs to make retaining lighter inputs necessary for success, rather than merely include inputs of different weights.

Source 1