-
Notifications
You must be signed in to change notification settings - Fork 303
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
Avoid registration of non-active validators #7423
Merged
zilm13
merged 31 commits into
Consensys:master
from
zilm13:fix/active-validator-registration
Oct 10, 2023
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
a86e148
Avoid registration of non-active validators
zilm13 578b171
Check validator statuses in batches
zilm13 9504635
Merge branch 'master' into fix/active-validator-registration
zilm13 fe9b2d1
Merge branch 'master' into fix/active-validator-registration
rolfyone f2e7c48
Merge branch 'master' into fix/active-validator-registration
zilm13 21d0a9b
Merge branch 'master' into fix/active-validator-registration
zilm13 b321a89
Merge branch 'master' into fix/active-validator-registration
zilm13 4495f7c
Cache validator statuses with ValidatorDataProvider and reuse it in v…
zilm13 49dbc16
Merge branch 'master' into fix/active-validator-registration
zilm13 5782d24
Fix integration test for PostRegisterValidator
zilm13 c2cbc48
Merge branch 'master' into fix/active-validator-registration
zilm13 039ef31
Remove duplicate validatorStatusProvider instance creation
zilm13 3b5f701
A lot of finals + getting error message refactoring
zilm13 c53e8a5
Use Subscribers model rather than Channel for new validator statuses
zilm13 8388e34
tmp broken
zilm13 ccd505e
Tmp. Mostly working with tests broken
zilm13 d9788e5
Merge branch 'master' into fix/active-validator-registration
zilm13 76385c6
Polishing
zilm13 e9bfdb2
Fixes + new test
zilm13 6c71df6
Merge branch 'master' into fix/active-validator-registration
zilm13 eb61ce5
Some polishing
zilm13 7ddd4f9
Fixed ValidatorStatusProvider was not subscribed to events
zilm13 96f2cec
Merge branch 'master' into fix/active-validator-registration
zilm13 e374caa
Log line updated
zilm13 a4af095
Merge branch 'master' into fix/active-validator-registration
zilm13 3198bdf
Refactor validator builder public key with override to use one functi…
zilm13 010c781
Merge branch 'master' into fix/active-validator-registration
zilm13 e9537bb
Renaming of several methods and classes + test update
zilm13 9bc7aef
Fix not doing full registration on possible missing events
zilm13 98d046a
Use cache in validator statuses when possibleMissingEvents and it's t…
zilm13 b429dc6
Merge branch 'master' into fix/active-validator-registration
zilm13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I have 2 doubts here:
1- putting filtering here means that it will only be applied when registering from a remote VC, and it will not be applied in single process.
I see this ValidatorDataProvider as a very thin layer. We should not have business logic unless we really want to differentiate between in process and remote VC handling.
2- if we filter upfront it means that validators in unknown status will not go in our BN data structure. Which means that, if VC doesn't keep calling the registration endpoint, the validator could become known at some point in future. It is an edge case but in theory we loose this info.
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.
sorry for
2-
. It is totally irrelevant considering what we are trying to achieve with this PR :)