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

Defrag wallet implicitly and reduce wallet maintenance to 10 outputs #837

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

ChrisSchinnerl
Copy link
Member

So far we've created 1 output per contract we want to form as part of the contract maintenance. That works but is not optimal since a large node with 200 outputs will frequently run into transactions which are too large for the transaction pool when trying to send a greater amount of Siacoins.

Now that we spend unconfirmed outputs when forming contracts, we can get away with fewer outputs. So this PR sets that number to 10 outputs and allows the wallet to grow up to 30 before starting to defrag the outputs the same way hostd defragments outputs.

@ChrisSchinnerl ChrisSchinnerl self-assigned this Dec 18, 2023
README.md Show resolved Hide resolved
@ChrisSchinnerl ChrisSchinnerl marked this pull request as ready for review December 20, 2023 12:13
@ChrisSchinnerl ChrisSchinnerl merged commit c496623 into dev Jan 12, 2024
6 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the chris/wallet-defrag branch January 12, 2024 13:55
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