-
Notifications
You must be signed in to change notification settings - Fork 28
feat: Enforcing strong typing and one explicit threshold: ReconstructionThr… #3350
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
base: main
Are you sure you want to change the base?
Changes from all commits
baa6dfa
da94f8a
349b024
94f46d8
9208be3
6ea5bb2
0b2334d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -418,7 +418,11 @@ fn participants_config_to_threshold_parameters( | |
| ) | ||
| .expect("Failed to insert participant"); | ||
| } | ||
| ThresholdParameters::new(participants, Threshold::new(participants_config.threshold)).unwrap() | ||
| ThresholdParameters::new( | ||
| participants, | ||
| Threshold::new(participants_config.threshold.inner()), | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this type has not been renamed. It feels weird to just cast the reconstruction threshold to this other type here. Shouldn't this also be the So I suggest one of two things:
The second option seems like it deserves its own issue, so I'd lean on 1. here. |
||
| ) | ||
| .unwrap() | ||
| } | ||
|
|
||
| /// Runs the fake indexer's shared state and logic. There's one instance of this per test. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this the governance threshold now? Do we want to have a separate notion between governance and reconstruction threshold? Otherwise, could we get rid of the existing
Thresholdtype in our primitives crate favor of just having theReconstructionThresholdeverywhere?