HomePhabricator

Merge #18262: bnb: exit selection when best_waste is 0

Description

Merge #18262: bnb: exit selection when best_waste is 0

Summary:
9b5950db8683f9b4be03f79ee0aae8a780b01a4b bnb: exit selection when best_waste is 0 (Andrew Chow)

Pull request description:

If we find a solution which has no waste, just use that. This solution
is what we would consider to be optimal, and other solutions we find
would have to also have 0 waste, so they are equivalent to the first
one with 0 waste. Thus we can optimize by just choosing the first one
with 0 waste.

Closes #18257

Backport of Core PR18262

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D8064

Details

Provenance
Samuel Dobson <dobsonsa68@gmail.com>Authored on Oct 23 2020, 18:38
jasonbcoxCommitted on Oct 23 2020, 18:38
abc-botPushed on Oct 23 2020, 18:43
Reviewer
Restricted Project
Differential Revision
D8064: Merge #18262: bnb: exit selection when best_waste is 0
Parents
rABC9aa665e17f2d: Correct docstring param name.
Branches
Unknown
Tags
Unknown