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 default genesis state #437

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Add default genesis state #437

merged 1 commit into from
Dec 10, 2024

Conversation

Thomasvdam
Copy link
Member

@Thomasvdam Thomasvdam commented Dec 10, 2024

Motivation

Without the default genesis state the module ends up in a state where it can't retrieve the max gas limit and all tally executions will just error out. See https://planet.test.explorer.seda.xyz/data-requests/72a0a8a68247202079023a800ef69c742e73fab43dff579bd2229cb5457ca622/894 for an example error.

Also register the message server and interfaces in the app module so we can actually update the params through governance. :)

Explanation of Changes

Implement genesis methods in the module.

Testing

Run a local chain with code added in the tally endblock handler to print the max gas limit every block.

{"level":"info","module":"server","module":"x/tally","max_gas_limit":300000000000000,"time":"2024-12-10T15:12:24+01:00","message":"max tally gas limit"}

Related PRs and Issues

N.A.

@Thomasvdam Thomasvdam requested review from hacheigriega and a team December 10, 2024 14:17
Also wire up the message server so we can actually send updateParams
transactions from the governance module.
@Thomasvdam Thomasvdam merged commit 67f1956 into main Dec 10, 2024
15 of 17 checks passed
@Thomasvdam Thomasvdam deleted the fix/tally-genesis branch December 10, 2024 15:22
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.

2 participants