-
Notifications
You must be signed in to change notification settings - Fork 29
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
Feat: VEBO v4 upgrade #460
Conversation
src/modules/ejector/ejector.py
Outdated
if consensus_version != 1: | ||
forced_validators = validators_iterator.get_remaining_forced_validators() | ||
if forced_validators: | ||
logger.info({'msg': 'Eject delayed forced to exit validators.', 'value': len(forced_validators)}) |
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.
msg is not clear for me
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.
fixed
(_, validator) = validator_container | ||
validator_to_eject_balance_sum += self._get_predicted_withdrawable_balance(validator) |
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.
why did you change it?
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.
fixed
raise StopIteration | ||
|
||
for node_operator in sorted(self.node_operators_stats.values(), key=self._no_predicate): | ||
if node_operator.exitable_validators: |
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.
if node_operator.exitable_validators: | |
if not node_operator.exitable_validators: | |
break |
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.
fixed
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.
Would be great to have the same as tests/modules/ejector/test_exit_order_iterator.py
tests here to make sure that the new version works as the old one in the same cases
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.
done
@@ -100,9 +100,11 @@ def get_web3_provider_map(cls): | |||
faker = cls.get_faker() | |||
|
|||
return { | |||
str: faker.pyint, |
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.
str <-> pyint ?
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.
Lifehack to not rewrite a lot of tests
That's because all CL responses are str =(
But for example, "index" should be int.
No description provided.