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

Packed protocol version #492

Merged
merged 27 commits into from
May 29, 2024
Merged

Conversation

StanislavBreadless
Copy link
Collaborator

@StanislavBreadless StanislavBreadless commented May 24, 2024

What ❔

Storing protocolVersion as a packed semver value.

Two potential improvements:

  • Store it as struct in storage. It gives us more explicit description of what it is. However it causes a much bigger diff code and generally packing will still be needed for the protocolVersionDeadline map in STM.
  • Store it as 100 * minor + patch. It is more human readable, but not "standard", though we can consider it due to better usability

Fixes: EVM-637

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

Copy link
Member

@vladbochok vladbochok left a comment

Choose a reason for hiding this comment

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

@StanislavBreadless We firstly need to bump protocol version and then start using this contract, right?

@StanislavBreadless StanislavBreadless marked this pull request as ready for review May 24, 2024 12:10
Copy link
Member

@vladbochok vladbochok left a comment

Choose a reason for hiding this comment

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

Please fix slither

@StanislavBreadless StanislavBreadless merged commit 8cc766e into release-v23 May 29, 2024
22 of 23 checks passed
@StanislavBreadless StanislavBreadless deleted the sb-packed-protocol-version branch May 29, 2024 09:07
Raid5594 pushed a commit that referenced this pull request May 30, 2024
Co-authored-by: perekopskiy <[email protected]>
Co-authored-by: Vlad Bochok <[email protected]>
Co-authored-by: perekopskiy <[email protected]>
Raid5594 pushed a commit that referenced this pull request May 30, 2024
Co-authored-by: perekopskiy <[email protected]>
Co-authored-by: Vlad Bochok <[email protected]>
Co-authored-by: perekopskiy <[email protected]>
Raid5594 pushed a commit that referenced this pull request May 30, 2024
Co-authored-by: perekopskiy <[email protected]>
Co-authored-by: Vlad Bochok <[email protected]>
Co-authored-by: perekopskiy <[email protected]>
Deniallugo pushed a commit that referenced this pull request Jul 25, 2024
Co-authored-by: perekopskiy <[email protected]>
Co-authored-by: Vlad Bochok <[email protected]>
Co-authored-by: perekopskiy <[email protected]>
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