-
Notifications
You must be signed in to change notification settings - Fork 4
Commit Boost Preconfirmation #525
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
base: main
Are you sure you want to change the base?
Conversation
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.
There seems to be some stuff missing here besides tests and the MD file we talked about.
How do you identify consensus instances?
For tests, simply study what is under ssv/duties ssv/postconsensus ssv/preconsensus
ssv/preconfirmation.go
Outdated
| BeaconNetwork: beaconNetwork, | ||
| Share: share, | ||
| QBFTController: qbftController, | ||
| highestDecidedSlot: highestDecidedSlot, |
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 believe this field is used for message validation
we need to remember that this will work differently than other duties
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.
By looking up this variable it seems it is not used anywhere...
Maybe I missed something?
ssv/preconfirmation.go
Outdated
| func (r *PreconfRunner) StartNewDuty(duty types.Duty, quorum uint64) error { | ||
| return r.BaseRunner.baseStartNewDuty(r, duty, quorum) | ||
| } | ||
|
|
||
| // HasRunningDuty returns true if a duty is already running (StartNewDuty called and returned nil) | ||
| func (r *PreconfRunner) HasRunningDuty() bool { | ||
| return r.BaseRunner.hasRunningDuty() | ||
| } |
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.
We said we can have several duties at the same slot?
what change(s) need to be made here?
types/beacon_types.go
Outdated
| DomainSyncCommitteeSelectionProof = [4]byte{0x08, 0x00, 0x00, 0x00} | ||
| DomainContributionAndProof = [4]byte{0x09, 0x00, 0x00, 0x00} | ||
| DomainApplicationBuilder = [4]byte{0x00, 0x00, 0x00, 0x01} | ||
| DomainCommitBoost = [4]byte{0x6d, 0x6d, 0x6f, 0x43} |
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.
reference?
…ager implementation, update tests
|
This pull request has been marked as stale due to 60 days of inactivity. |
Add a preconfirmation duty to sign and submit preconf requests.