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

Stateprice for Quai #2049

Merged
merged 11 commits into from
Sep 6, 2024
Merged

Conversation

gameofpointers
Copy link
Contributor

No description provided.

@gameofpointers
Copy link
Contributor Author

gameofpointers commented Aug 21, 2024

Fields in the header gets validated on each block, but if the functions that calculate these fields are correct is something to be tested.

Feature testing

  • Does adding new account increases the QuaiStateSize in the header?
  • Does deleting an existing account using a transaction with decreases the QuaiStateSize in the header for the next block?
  • Does adding a new storage entry into the contract increase the size of the contract account?
  • Does removing an existing storage entry from a contract decrease the size of the contract account?
  • Does the StateLimit adjust in the block based on the controller?
  • Does StateUsed reflect and is accounted for all the gas used for state computation?

params/protocol_params.go Outdated Show resolved Hide resolved
core/types/block.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jdowning100 jdowning100 left a comment

Choose a reason for hiding this comment

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

Need to add stategas to create() for CreateAccount

@gameofpointers gameofpointers force-pushed the stateprice branch 3 times, most recently from 9cb95de to d0a89a0 Compare September 3, 2024 18:36
@gameofpointers
Copy link
Contributor Author

@jdowning100 made all the changes you asked. can you re review again ?

jdowning100
jdowning100 previously approved these changes Sep 3, 2024
wizeguyy
wizeguyy previously approved these changes Sep 3, 2024
@gameofpointers gameofpointers merged commit c99c37f into dominant-strategies:main Sep 6, 2024
8 checks passed
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