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

Avoid needless balance calculations from ticket autobuyer #2203

Merged
merged 1 commit into from Mar 13, 2023

Conversation

jrick
Copy link
Member

@jrick jrick commented Jan 30, 2023

When the ticketbuyer.balancetomaintainabsolute flag is unset/zero,
there is no reason that the account balance needs to be calculated.
On busier wallets, avoid this results in a significant performance
improvement.

This flag is already broken for a different reason (change can land in
other accounts, causing the account balance to drop below this
setting) but there are still some people using the flag despite this,
and compensating by setting it higher than they need.

@davecgh
Copy link
Member

davecgh commented Mar 13, 2023

On busier wallets, avoid this results in a significant performance
improvement.

Probably should be "avoiding".

When the ticketbuyer.balancetomaintainabsolute flag is unset/zero,
there is no reason that the account balance needs to be calculated.
On busier wallets, avoiding this results in a significant performance
improvement.

This flag is already broken for a different reason (change can land in
other accounts, causing the account balance to drop below this
setting) but there are still some people using the flag despite this,
and compensating by setting it higher than they need.
@jrick jrick merged commit 39ec467 into decred:master Mar 13, 2023
2 checks passed
@jrick jrick deleted the balance_call branch March 13, 2023 19:15
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.

None yet

3 participants