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] Recoverable Random Beacon State Machine follow up updates #6815

Merged
merged 24 commits into from
Jan 7, 2025

Conversation

durkmurder
Copy link
Member

@durkmurder durkmurder commented Dec 13, 2024

Context

This PR addresses some open comments from PR #6771.
Specifically:

By far the biggest change is how we insert/upsert keys, now caller needs to provide evidence in form of EpochCommit so state machine can sanity check if it's inserting a valid private key.

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 11.76471% with 15 lines in your changes missing coverage. Please review.

Project coverage is 39.25%. Comparing base (2e44aa0) to head (c975795).

Files with missing lines Patch % Lines
cmd/consensus/main.go 0.00% 15 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           feature/efm-recovery    #6815      +/-   ##
========================================================
- Coverage                 41.73%   39.25%   -2.48%     
========================================================
  Files                      2033     1356     -677     
  Lines                    181223   126753   -54470     
========================================================
- Hits                      75632    49763   -25869     
+ Misses                    99364    72959   -26405     
+ Partials                   6227     4031    -2196     
Flag Coverage Δ
unittests 39.25% <11.76%> (-2.48%) ⬇️

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.

@durkmurder durkmurder marked this pull request as ready for review December 17, 2024 14:29
engine/consensus/dkg/reactor_engine_test.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Show resolved Hide resolved
storage/badger/dkg_state_test.go Outdated Show resolved Hide resolved
storage/badger/dkg_state_test.go Outdated Show resolved Hide resolved
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.

Looks great. Thanks for the detailed work and solid tests. My comments mostly fall into two categories:

  • how we represent the underlying logic in code - in particular, we want to make it as easy as possible for somebody reading the code to convince themself of correctness (and which parts can be modified / extended without breaking correctness)
  • clearly documenting under which conditions operations are idempotent and structuring the code accordingly for clarity.

storage/badger/dkg_state.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Outdated Show resolved Hide resolved
storage/dkg.go Outdated Show resolved Hide resolved
storage/dkg.go Outdated Show resolved Hide resolved
storage/badger/dkg_state.go Outdated Show resolved Hide resolved
cmd/consensus/main.go Outdated Show resolved Hide resolved
cmd/consensus/main.go Outdated Show resolved Hide resolved
@durkmurder durkmurder merged commit 7e6e79d into feature/efm-recovery Jan 7, 2025
55 checks passed
@durkmurder durkmurder deleted the yurii/6725-follow-up-changes branch January 7, 2025 17:09
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