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

add current usage check to storage upgrade tx #244

Conversation

dahn510
Copy link
Member

@dahn510 dahn510 commented Feb 9, 2023

Added changes to upgrade storage tx.
Upgrade bytes needs to be bigger than current space used.
If the condition (newBytes < spaceUsed) is true, invalid request error with "cannot downgrade below current usage" is returned.

Copy link
Member

@nuggetnchill nuggetnchill left a comment

Choose a reason for hiding this comment

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

thank you ser

@TheMarstonConnell TheMarstonConnell merged commit 53dc889 into bouncy-bulldog-rc Feb 9, 2023
@TheMarstonConnell TheMarstonConnell deleted the JKL-247-add-current-usage-check-to-storage-upgrade-tx branch February 9, 2023 00:47
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.

3 participants