Skip to content

Commit b692e61

Browse files
committed
Merge bitcoin/bitcoin#23254: doc: Fix typo and grammar
ffd11ea Fix typo and grammar (Heebs) Pull request description: Fix typo and grammar in the coin selection algorithm's description. ACKs for top commit: meshcollider: ACK ffd11ea Tree-SHA512: bba07c2efd5140fb3e021618739d70aaa761bbc274afb8158809492b0606773c217e42e58e58b18a2454b9c45ebc883ebece17cdc467ac60e3d3140d7a979db7
2 parents f601326 + ffd11ea commit b692e61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/coinselection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct {
2626
* set that can pay for the spending target and does not exceed the spending target by more than the
2727
* cost of creating and spending a change output. The algorithm uses a depth-first search on a binary
2828
* 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
3030
* branch first. At each node, the algorithm checks whether the selection is within the target range.
3131
* While the selection has not reached the target range, more UTXOs are included. When a selection's
3232
* value exceeds the target range, the complete subtree deriving from this selection can be omitted.
@@ -36,7 +36,7 @@ struct {
3636
* The search continues to search for better solutions after one solution has been found. The best
3737
* solution is chosen by minimizing the waste metric. The waste metric is defined as the cost to
3838
* 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:
4040
*
4141
* waste = selectionTotal - target + inputs × (currentFeeRate - longTermFeeRate)
4242
*

0 commit comments

Comments
 (0)