Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix outputs for sweep transactions #399

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Conversation

Jossec101
Copy link
Contributor

@Jossec101 Jossec101 commented Oct 28, 2024

This pull request adds two constants that sets a minimum amount for a sweep tx to be created and the conf target in blocks.

It also removes the bug where we could create dust utxos because of LND change, before we create three outputs as in this picture:
image

Now this shall be more efficient as only two utxos are created, however, there must be always a 100K utxo in the wallet at all times, we no longer create it programatically but this is just ops things.
image

…o be swept out of the LND hot wallet, this shall ensure that there's more than a 100K utxo in the wallet
@Jossec101 Jossec101 marked this pull request as ready for review October 28, 2024 11:16
@Jossec101 Jossec101 requested a review from RodriFS October 28, 2024 11:16
@Jossec101 Jossec101 changed the title Fix coin selection for sweep transactions Fix outputs for sweep transactions Oct 28, 2024
RodriFS
RodriFS previously approved these changes Oct 28, 2024
@Jossec101 Jossec101 merged commit d3cbf59 into main Oct 28, 2024
3 checks passed
@Jossec101 Jossec101 deleted the fix-uneconomical-utxo-sweeps branch October 28, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants