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

Epoch 1 is genesis epoch #4112

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Epoch 1 is genesis epoch #4112

merged 4 commits into from
Feb 6, 2025

Conversation

lukaszrzasik
Copy link
Contributor

@lukaszrzasik lukaszrzasik commented Feb 6, 2025

Closes #<ISSUE_NUMBER>

This PR:

  • Changes genesis epoch from 0 to 1
  • Implements genesis method returning Epoch 1 for EpochNumber. This is currently dead code but I think it's better to have it in place so that the default method returning Epoch 0 is not used by accident.
  • Adjusts test_genesis_epoch_from_version accordingly

This PR does not:

Key places to review:

pls148 and others added 3 commits February 4, 2025 14:53
The method is not called at the moment but it's better
to have it because otherwise the default genesis method
returning 0 might be called by accident.
@lukaszrzasik lukaszrzasik changed the base branch from main to ps/4045 February 6, 2025 16:31
@lukaszrzasik lukaszrzasik changed the title Lr/random membership tests Epoch 1 is genesis epoch Feb 6, 2025
@lukaszrzasik lukaszrzasik marked this pull request as ready for review February 6, 2025 16:50
@pls148 pls148 merged commit 305e375 into ps/4045 Feb 6, 2025
25 checks passed
@pls148 pls148 deleted the lr/random-membership-tests branch February 6, 2025 17:27
pls148 added a commit that referenced this pull request Feb 6, 2025
* #4045 re-enable epochs tests with dynamic quora

* Epoch 1 is genesis epoch (#4112)

* #4045 re-enable epochs tests with dynamic quora

* Remove Epoch 0

* Allow dead code for genesis method for EpochNumber

The method is not called at the moment but it's better
to have it because otherwise the default genesis method
returning 0 might be called by accident.

* Adjust test_genesis_epoch_from_version

---------

Co-authored-by: pls148 <[email protected]>

---------

Co-authored-by: lukaszrzasik <[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.

4 participants