Skip to content

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

Merged
ethanoroshiba merged 5 commits intomainfrom
ENG-921/genesis_fees_optional
Oct 23, 2024
Merged

feat(sequencer): make fees optional at genesis#1664
ethanoroshiba merged 5 commits intomainfrom
ENG-921/genesis_fees_optional

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
Contributor

@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.

@ethanoroshiba ethanoroshiba added this pull request to the merge queue Oct 23, 2024
Merged via the queue into main with commit 4be57cc Oct 23, 2024
@ethanoroshiba ethanoroshiba deleted the ENG-921/genesis_fees_optional branch October 23, 2024 21:09
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

3 participants