diff options
author | Heebs <hieblmi@gmail.com> | 2021-10-11 08:26:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 08:26:07 -0400 |
commit | ffd11ea87640c8a3d83b6f83ac18e65234fc6002 (patch) | |
tree | 2bbab69bf70d40b8a142af61771097bfb4a32872 /src/wallet/coinselection.cpp | |
parent | 1790a8ddacae0d52135f5020894ef1ceef625cf9 (diff) | |
download | bitcoin-ffd11ea87640c8a3d83b6f83ac18e65234fc6002.tar.xz |
Fix typo and grammar
Fix typo and grammar in the coin selection algorithm's description.
Diffstat (limited to 'src/wallet/coinselection.cpp')
-rw-r--r-- | src/wallet/coinselection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/coinselection.cpp b/src/wallet/coinselection.cpp index e1ca3fb379..c0ca931364 100644 --- a/src/wallet/coinselection.cpp +++ b/src/wallet/coinselection.cpp @@ -26,7 +26,7 @@ struct { * set that can pay for the spending target and does not exceed the spending target by more than the * cost of creating and spending a change output. The algorithm uses a depth-first search on a binary * tree. In the binary tree, each node corresponds to the inclusion or the omission of a UTXO. UTXOs - * are sorted by their effective values and the trees is explored deterministically per the inclusion + * are sorted by their effective values and the tree is explored deterministically per the inclusion * branch first. At each node, the algorithm checks whether the selection is within the target range. * While the selection has not reached the target range, more UTXOs are included. When a selection's * value exceeds the target range, the complete subtree deriving from this selection can be omitted. @@ -36,7 +36,7 @@ struct { * The search continues to search for better solutions after one solution has been found. The best * solution is chosen by minimizing the waste metric. The waste metric is defined as the cost to * spend the current inputs at the given fee rate minus the long term expected cost to spend the - * inputs, plus the amount the selection exceeds the spending target: + * inputs, plus the amount by which the selection exceeds the spending target: * * waste = selectionTotal - target + inputs × (currentFeeRate - longTermFeeRate) * |