forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: Sort by value density to cut more tiny UTXOs
Pieter noticed that if we sort the UTXOs by effective amount over weight instead of effective amount, we can more accurately underestimate how much weight it will take to reach the funding target. This lets us skip the exploration of combinations with tiny UTXOs even more quickly. Co-authored-by: Pieter Wuille <[email protected]>
- Loading branch information
1 parent
a4b6b4c
commit 7603743
Showing
2 changed files
with
52 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters