Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wallet: drop change to fee if amount is dust
This commit refactors the CoinSelector class to properly handle the calculation of change cost. The change amount is now checked against the cost of change, and if the change is less than the cost, the cost is added to the transaction fee. This ensures that the transaction output is correctly adjusted based on the current fee rate and the size of the change output.
- Loading branch information