-
Notifications
You must be signed in to change notification settings - Fork 24
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
Spec - New ValidatorRegistration/ValidatorExit duties stop old ones #317
Closed
Closed
Changes from 24 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
29d4a62
take care of height equals 0 case
GalRogozinski 59733f5
new duty first height tests
GalRogozinski 15e21a2
fix broadcast messages
GalRogozinski 937289d
change should process duty
GalRogozinski 2287a99
base start new duty
GalRogozinski 92b6962
delete future messages test
GalRogozinski 2b013b4
old duty slot
GalRogozinski f14bfd0
run test
GalRogozinski 5912576
duplicate duty fix tests
GalRogozinski fe71e3b
Revert "run test"
GalRogozinski 646fef0
duplicate duty fix tests
GalRogozinski d282c0d
add missing SCs
GalRogozinski d2cfd6e
finished.go
GalRogozinski 5b9a6e2
ssv msgs
GalRogozinski 2ea86c7
TestingValidatorRegistrationBySlot
GalRogozinski 442da4e
VoluntaryExitBySlot
GalRogozinski 1993e1d
remove TestingEpoch2
GalRogozinski 1ff2739
duty finished jsons
GalRogozinski c8dc152
consensus_not_started.go
GalRogozinski 6d4e6c4
generate jsons
GalRogozinski 2e974c2
Merge branch 'main' into fix/non-qbft-runners
GalRogozinski bfa1d32
fix comment
GalRogozinski 07c7173
fix old duty
GalRogozinski 1b6c21f
fix old duty
GalRogozinski 2b400c6
fix: re-generate JSONs (#1)
moshe-blox 355de01
Fallback to QBFT controller if needed
GalRogozinski 15579cf
Revert "Fallback to QBFT controller if needed"
GalRogozinski 4273b12
"delete run one"
GalRogozinski 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
134 changes: 134 additions & 0 deletions
134
...ultiStartNewRunnerDutySpecTest/new_duty_consensus_not_started/validator registration.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
{ | ||
"BaseRunner": { | ||
"State": { | ||
"PreConsensusContainer": { | ||
"Signatures": {}, | ||
"Quorum": 3 | ||
}, | ||
"PostConsensusContainer": { | ||
"Signatures": {}, | ||
"Quorum": 3 | ||
}, | ||
"RunningInstance": null, | ||
"DecidedValue": null, | ||
"StartingDuty": { | ||
"Type": 5, | ||
"PubKey": [ | ||
142, | ||
128, | ||
6, | ||
101, | ||
81, | ||
168, | ||
27, | ||
49, | ||
130, | ||
88, | ||
112, | ||
158, | ||
218, | ||
247, | ||
221, | ||
31, | ||
99, | ||
205, | ||
104, | ||
106, | ||
14, | ||
77, | ||
184, | ||
178, | ||
155, | ||
187, | ||
122, | ||
207, | ||
230, | ||
86, | ||
8, | ||
103, | ||
122, | ||
245, | ||
165, | ||
39, | ||
217, | ||
68, | ||
142, | ||
228, | ||
120, | ||
53, | ||
72, | ||
94, | ||
2, | ||
181, | ||
11, | ||
192 | ||
], | ||
"Slot": 50, | ||
"ValidatorIndex": 1, | ||
"CommitteeIndex": 0, | ||
"CommitteeLength": 0, | ||
"CommitteesAtSlot": 0, | ||
"ValidatorCommitteeIndex": 0, | ||
"ValidatorSyncCommitteeIndices": null | ||
}, | ||
"Finished": false | ||
}, | ||
"Share": { | ||
"OperatorID": 1, | ||
"ValidatorPubKey": "joAGZVGoGzGCWHCe2vfdH2PNaGoOTbiym7t6z+ZWCGd69aUn2USO5Hg1SF4CtQvA", | ||
"SharePubKey": "l9lKgR1kSTYFKp0tSs1kcYl0z2eNvv0mcyTI6fjnA0pKa32HeeJ6AZU4w8Qlw+Xn", | ||
"Committee": [ | ||
{ | ||
"OperatorID": 1, | ||
"PubKey": "l9lKgR1kSTYFKp0tSs1kcYl0z2eNvv0mcyTI6fjnA0pKa32HeeJ6AZU4w8Qlw+Xn" | ||
}, | ||
{ | ||
"OperatorID": 2, | ||
"PubKey": "przr4wl9dBcbQMcSoDHOsDcds9PEAs8s5pG5Eg87q3XU1W36DzdZFUSZm/GMU1Pt" | ||
}, | ||
{ | ||
"OperatorID": 3, | ||
"PubKey": "gJDgt2ZqRezF1O90GKyZ8J5sskQCn+pqCn/Mvp7gi8U53g36Zr5rq8hJPdmd0amN" | ||
}, | ||
{ | ||
"OperatorID": 4, | ||
"PubKey": "p8CidrcKXuM5XH1tJlXtYFKKolLU0h7KX8xSI+UMxCvRaLKAq3q1MXNU3d/PPfnk" | ||
} | ||
], | ||
"Quorum": 3, | ||
"PartialQuorum": 2, | ||
"DomainType": [ | ||
0, | ||
0, | ||
3, | ||
1 | ||
], | ||
"FeeRecipientAddress": [ | ||
83, | ||
89, | ||
83, | ||
181, | ||
166, | ||
4, | ||
0, | ||
116, | ||
148, | ||
140, | ||
241, | ||
133, | ||
234, | ||
167, | ||
210, | ||
171, | ||
189, | ||
102, | ||
128, | ||
143 | ||
], | ||
"Graffiti": null | ||
}, | ||
"QBFTController": null, | ||
"BeaconNetwork": "prater", | ||
"BeaconRoleType": 5 | ||
} | ||
} |
134 changes: 134 additions & 0 deletions
134
...ewduty_MultiStartNewRunnerDutySpecTest/new_duty_consensus_not_started/voluntary exit.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
{ | ||
"BaseRunner": { | ||
"State": { | ||
"PreConsensusContainer": { | ||
"Signatures": {}, | ||
"Quorum": 3 | ||
}, | ||
"PostConsensusContainer": { | ||
"Signatures": {}, | ||
"Quorum": 3 | ||
}, | ||
"RunningInstance": null, | ||
"DecidedValue": null, | ||
"StartingDuty": { | ||
"Type": 6, | ||
"PubKey": [ | ||
142, | ||
128, | ||
6, | ||
101, | ||
81, | ||
168, | ||
27, | ||
49, | ||
130, | ||
88, | ||
112, | ||
158, | ||
218, | ||
247, | ||
221, | ||
31, | ||
99, | ||
205, | ||
104, | ||
106, | ||
14, | ||
77, | ||
184, | ||
178, | ||
155, | ||
187, | ||
122, | ||
207, | ||
230, | ||
86, | ||
8, | ||
103, | ||
122, | ||
245, | ||
165, | ||
39, | ||
217, | ||
68, | ||
142, | ||
228, | ||
120, | ||
53, | ||
72, | ||
94, | ||
2, | ||
181, | ||
11, | ||
192 | ||
], | ||
"Slot": 50, | ||
"ValidatorIndex": 1, | ||
"CommitteeIndex": 0, | ||
"CommitteeLength": 0, | ||
"CommitteesAtSlot": 0, | ||
"ValidatorCommitteeIndex": 0, | ||
"ValidatorSyncCommitteeIndices": null | ||
}, | ||
"Finished": false | ||
}, | ||
"Share": { | ||
"OperatorID": 1, | ||
"ValidatorPubKey": "joAGZVGoGzGCWHCe2vfdH2PNaGoOTbiym7t6z+ZWCGd69aUn2USO5Hg1SF4CtQvA", | ||
"SharePubKey": "l9lKgR1kSTYFKp0tSs1kcYl0z2eNvv0mcyTI6fjnA0pKa32HeeJ6AZU4w8Qlw+Xn", | ||
"Committee": [ | ||
{ | ||
"OperatorID": 1, | ||
"PubKey": "l9lKgR1kSTYFKp0tSs1kcYl0z2eNvv0mcyTI6fjnA0pKa32HeeJ6AZU4w8Qlw+Xn" | ||
}, | ||
{ | ||
"OperatorID": 2, | ||
"PubKey": "przr4wl9dBcbQMcSoDHOsDcds9PEAs8s5pG5Eg87q3XU1W36DzdZFUSZm/GMU1Pt" | ||
}, | ||
{ | ||
"OperatorID": 3, | ||
"PubKey": "gJDgt2ZqRezF1O90GKyZ8J5sskQCn+pqCn/Mvp7gi8U53g36Zr5rq8hJPdmd0amN" | ||
}, | ||
{ | ||
"OperatorID": 4, | ||
"PubKey": "p8CidrcKXuM5XH1tJlXtYFKKolLU0h7KX8xSI+UMxCvRaLKAq3q1MXNU3d/PPfnk" | ||
} | ||
], | ||
"Quorum": 3, | ||
"PartialQuorum": 2, | ||
"DomainType": [ | ||
0, | ||
0, | ||
3, | ||
1 | ||
], | ||
"FeeRecipientAddress": [ | ||
83, | ||
89, | ||
83, | ||
181, | ||
166, | ||
4, | ||
0, | ||
116, | ||
148, | ||
140, | ||
241, | ||
133, | ||
234, | ||
167, | ||
210, | ||
171, | ||
189, | ||
102, | ||
128, | ||
143 | ||
], | ||
"Graffiti": null | ||
}, | ||
"QBFTController": null, | ||
"BeaconNetwork": "prater", | ||
"BeaconRoleType": 6 | ||
} | ||
} |
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.
Why not just add b.QBFTController != nill check?
Why change it to the above which changes the whole logic
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.
While fixing the issue I thought about making things better.
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.
added a fallback that uses QBFTController just to get this approved
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.
From my perspective, indeed, the change makes module separation better and avoids the problem with the validator registration and exit duties