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

Handle overflow in anon bank deposits #1967

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

hemberger
Copy link
Member

When depositing into an anon account, the database would overflow if the amount in the account would exceed MAX_MONEY. Now, the deposit will be adjusted so that it doesn't exceed MAX_MONEY, and if the account is already at MAX_MONEY, it will emit a comprehensible error.

When depositing into an anon account, the database would overflow if
the amount in the account would exceed MAX_MONEY. Now, the deposit will
be adjusted so that it doesn't exceed MAX_MONEY, and if the account is
already at MAX_MONEY, it will emit a comprehensible error.
@hemberger hemberger merged commit 65846a4 into smrealms:main Dec 3, 2024
8 checks passed
@hemberger hemberger deleted the anon-overflow branch December 3, 2024 08:00
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.

1 participant