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

Redistribute wallet into 100 outputs #1829

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

peterjan
Copy link
Member

No description provided.

@peterjan peterjan self-assigned this Feb 10, 2025
Copy link
Member

@ChrisSchinnerl ChrisSchinnerl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should improve things but first we might need to merge SiaFoundation/coreutils#170 since >10 is the magic threshold where we currently have a chance of producing invalid transaction sets.

}

// skip maintenance if wallet balance is too low
if numOutputs < 10 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) do you want to update the warning now that we check for outputs instead of balance?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition is numOutputs < 10 but the warning mentions the balance being too low with the current balance rather than the fact that < 10 outputs triggered the warning

Copy link
Member Author

@peterjan peterjan Feb 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean < 10 didn't really trigger the warning. Why would we want to specify "10" as a meaningful number. We want to split into 100, lower is fine, below 10 we don't bother. This warning essentially says: your wallet is virtually empty, we won't even bother redistributing it. We're talking sub 1KS wallets here. I don't mind updating the warning but I feel we would be needless specifying a very arbitrary condition that doesn't mean anything.

edit:
I updated it, but feel free to revert the commit. I don't see the point in providing so much information simply because the threshold is so low (~1KS). I consider this a shortcoming of renterd though, in general, when we're out of money we drown the user in alerts that are essentially side-effects. I had it happen to my node, and when you log in you see a lot of alerts, but it's not immediately apparent the balance is 0... That's one of the things I would probably want to do differently next time around UX wise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants