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

It should be possible to re-enroll a Validator while it is in the validator set #824

Closed
AndrejMitrovic opened this issue May 13, 2020 · 0 comments · Fixed by #873
Closed
Assignees
Labels
prio-high Will have an effect in the next three sprints Story-Points:3 This takes 1 to 3 days to complete type-enhancement An improvement of existing functionalities
Milestone

Comments

@AndrejMitrovic
Copy link
Contributor

AndrejMitrovic commented May 13, 2020

As discussed with @Geod24. This is similar to #822, but is a different feature.

Consider this case:

  • Genesis block begins with 2 validators
  • Their expiration block is at height 1008
  • At block height 1008 the validators want to re-enroll so they can begin validating blocks [1009 .. 2017]

Problem:

@AndrejMitrovic AndrejMitrovic added the type-enhancement An improvement of existing functionalities label May 13, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 15, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 15, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 15, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 18, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 18, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 18, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 18, 2020
@Geod24 Geod24 added the prio-high Will have an effect in the next three sprints label May 19, 2020
@Geod24 Geod24 added this to the 2. Validator milestone May 19, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 19, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 19, 2020
@bpalaggi bpalaggi added the Story-Points:3 This takes 1 to 3 days to complete label May 20, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 20, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 20, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 20, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 20, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 20, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 21, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 25, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 25, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 25, 2020
linked0 added a commit to linked0/agora that referenced this issue May 25, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue May 26, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 26, 2020
linked0 added a commit to linked0/agora that referenced this issue May 26, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 26, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 27, 2020
linked0 added a commit to linked0/agora that referenced this issue May 28, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue May 28, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 29, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue May 29, 2020
AndrejMitrovic added a commit to AndrejMitrovic/agora that referenced this issue Jun 1, 2020
linked0 added a commit to linked0/agora that referenced this issue Jun 1, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
@Geod24 Geod24 linked a pull request Jun 2, 2020 that will close this issue
linked0 added a commit to linked0/agora that referenced this issue Jun 2, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 2, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 2, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 2, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 3, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 3, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 11, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 12, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 19, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 22, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 23, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 23, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 23, 2020
The validator set should allow a node to re-enroll before the validator cycle
ends. It's not for sure that an enrollment will be contained in the next
new block, so the validator set must add the enrollment earlier before the
cycle ends.

I added the constant about the round that a node can re-enroll because
unnecessary re-enrollments should be avoid. The value can be configurable.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 23, 2020
The `EnrollmentManager` should allow a node to re-enroll before the validator cycle
ends. If requests for enrolllment arrives before the cycle ends, the
enrollment will be added in the height where the cycle ends. So the
`getEnrollments` of the `EnrollmentManager` must return the enrollments right
before the end of the cycle.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 23, 2020
The `EnrollmentManager` should allow a node to re-enroll before the validator cycle
ends. If requests for enrolllment arrives before the cycle ends, the
enrollment will be added in the height where the cycle ends. So the
`getEnrollments` of the `EnrollmentManager` must return the enrollments right
before the end of the cycle.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 23, 2020
The `EnrollmentManager` should allow a node to re-enroll before the validator cycle
ends. If requests for enrolllment arrives before the cycle ends, the
enrollment will be added in the height where the cycle ends. So the
`getEnrollments` of the `EnrollmentManager` must return the enrollments right
before the end of the cycle.

Relates bosagora#824
linked0 added a commit to linked0/agora that referenced this issue Jun 24, 2020
The `EnrollmentManager` should allow a node to re-enroll before the validator cycle
ends. If requests for enrolllment arrives before the cycle ends, the
enrollment will be added in the height where the cycle ends. So the
`getEnrollments` of the `EnrollmentManager` must return the enrollments right
before the end of the cycle.

Relates bosagora#824
Geod24 pushed a commit that referenced this issue Jun 24, 2020
The `EnrollmentManager` should allow a node to re-enroll before the validator cycle
ends. If requests for enrolllment arrives before the cycle ends, the
enrollment will be added in the height where the cycle ends. So the
`getEnrollments` of the `EnrollmentManager` must return the enrollments right
before the end of the cycle.

Relates #824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio-high Will have an effect in the next three sprints Story-Points:3 This takes 1 to 3 days to complete type-enhancement An improvement of existing functionalities
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants