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

feat(sequencer): make fees optional at genesis #1664

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ethanoroshiba
Copy link
Contributor

@ethanoroshiba ethanoroshiba commented Oct 16, 2024

Summary

Made all fees except for FeeChange action optional at genesis.

Background

Tracking PR for this comment. Allows for more flexibility at genesis. Post #1647, an action with no fees in the state is by default deactivated until it is explicitly given fees, even if they are 0. This is to allow for actions to be added in the future without breaking consensus, but also allows for more flexibility at genesis. Now, all actions can be disabled at genesis by making the fees optional, except for FeeChange, which is needed in order to activate actions by giving them fees.

Changes

  • Made all fees in GenesisFees optional (except for fee_change).

Testing

Passing all tests.

Related Issues

closes #1662

@ethanoroshiba ethanoroshiba added the docker-build used to trigger docker builds on PRs label Oct 16, 2024
@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Oct 16, 2024
@ethanoroshiba ethanoroshiba marked this pull request as ready for review October 16, 2024 16:01
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner October 16, 2024 16:01
Copy link
Member

@SuperFluffy SuperFluffy left a comment

Choose a reason for hiding this comment

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

Changes look good and are fine to be merged IMO.

It looks like we can only ever enable certain actions via their fees, but never disable them. Going to bring this up with the team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-build used to trigger docker builds on PRs sequencer pertaining to the astria-sequencer crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sequencer: make fees optional upon genesis
2 participants