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

[EFM] Transition to committed epoch in EFM #5898

Merged
merged 9 commits into from May 15, 2024

Conversation

durkmurder
Copy link
Member

#5726

Context

Previously we could maintain EFM only if we have entered it in staking or setup phases, if we have entered EFM when next epoch has been already committed then we wouldn't perform epoch transition because FallbackStateMachine ignored request for transition to the next epoch.

This PR updates FallbackStateMachine to use the same logic for epoch transitions as the happy path. Additionally activated previously disabled tests and restructured logic.

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.61%. Comparing base (2d4c9b1) to head (9ec93b9).

Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/efm-recovery    #5898      +/-   ##
========================================================
- Coverage                 57.63%   55.61%   -2.03%     
========================================================
  Files                       867     1134     +267     
  Lines                     68038    89665   +21627     
========================================================
+ Hits                      39217    49868   +10651     
- Misses                    25129    34997    +9868     
- Partials                   3692     4800    +1108     
Flag Coverage Δ
unittests 55.61% <100.00%> (-2.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@AlexHentschel AlexHentschel left a comment

Choose a reason for hiding this comment

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

very nice and clean code 👏 . Its exciting to see the puzzle pieces coming together.

durkmurder and others added 5 commits May 15, 2024 13:30
Co-authored-by: Alexander Hentschel <alex.hentschel@flowfoundation.org>
Co-authored-by: Alexander Hentschel <alex.hentschel@flowfoundation.org>
…t.go

Co-authored-by: Alexander Hentschel <alex.hentschel@flowfoundation.org>
Copy link
Member

@jordanschalm jordanschalm left a comment

Choose a reason for hiding this comment

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

🎸

@durkmurder durkmurder merged commit 58904cd into feature/efm-recovery May 15, 2024
55 checks passed
@durkmurder durkmurder deleted the yurii/5726-maintaining-efm branch May 15, 2024 19:46
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.

None yet

5 participants