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

Feat: VEBO v4 upgrade #460

Merged
merged 13 commits into from
Jun 11, 2024
Merged

Feat: VEBO v4 upgrade #460

merged 13 commits into from
Jun 11, 2024

Conversation

F4ever
Copy link
Member

@F4ever F4ever commented May 28, 2024

No description provided.

@F4ever F4ever requested a review from a team as a code owner May 28, 2024 14:43
@F4ever F4ever changed the base branch from feat/oracle-v4 to feat/base-oracle-versioning May 28, 2024 21:05
@F4ever F4ever changed the base branch from feat/base-oracle-versioning to feat/tests-for-abstraction May 28, 2024 21:05
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)})
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Comment on lines -184 to -185
(_, validator) = validator_container
validator_to_eject_balance_sum += self._get_predicted_withdrawable_balance(validator)
Copy link
Contributor

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?

Copy link
Member Author

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:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if node_operator.exitable_validators:
if not node_operator.exitable_validators:
break

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

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

done

src/services/exit_order_v2/iterator.py Outdated Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Outdated Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Outdated Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Outdated Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Outdated Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Outdated Show resolved Hide resolved
src/services/exit_order_v2/iterator.py Show resolved Hide resolved
src/utils/validator_state.py Show resolved Hide resolved
@@ -100,9 +100,11 @@ def get_web3_provider_map(cls):
faker = cls.get_faker()

return {
str: faker.pyint,
Copy link
Contributor

Choose a reason for hiding this comment

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

str <-> pyint ?

Copy link
Member Author

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.

@F4ever F4ever changed the base branch from feat/tests-for-abstraction to feat/oracle-v4 June 11, 2024 17:19
@F4ever F4ever merged commit 3073f9f into feat/oracle-v4 Jun 11, 2024
5 of 6 checks passed
@F4ever F4ever mentioned this pull request Jun 11, 2024
@F4ever F4ever mentioned this pull request Jul 26, 2024
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.

3 participants