File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ struct {
26
26
* set that can pay for the spending target and does not exceed the spending target by more than the
27
27
* cost of creating and spending a change output. The algorithm uses a depth-first search on a binary
28
28
* tree. In the binary tree, each node corresponds to the inclusion or the omission of a UTXO. UTXOs
29
- * are sorted by their effective values and the trees is explored deterministically per the inclusion
29
+ * are sorted by their effective values and the tree is explored deterministically per the inclusion
30
30
* branch first. At each node, the algorithm checks whether the selection is within the target range.
31
31
* While the selection has not reached the target range, more UTXOs are included. When a selection's
32
32
* value exceeds the target range, the complete subtree deriving from this selection can be omitted.
@@ -36,7 +36,7 @@ struct {
36
36
* The search continues to search for better solutions after one solution has been found. The best
37
37
* solution is chosen by minimizing the waste metric. The waste metric is defined as the cost to
38
38
* spend the current inputs at the given fee rate minus the long term expected cost to spend the
39
- * inputs, plus the amount the selection exceeds the spending target:
39
+ * inputs, plus the amount by which the selection exceeds the spending target:
40
40
*
41
41
* waste = selectionTotal - target + inputs × (currentFeeRate - longTermFeeRate)
42
42
*
You can’t perform that action at this time.
0 commit comments