Skip to content

Conversation

@alan-ssvlabs
Copy link
Contributor

Add a preconfirmation duty to sign and submit preconf requests.

Copy link
Contributor

@GalRogozinski GalRogozinski left a 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

BeaconNetwork: beaconNetwork,
Share: share,
QBFTController: qbftController,
highestDecidedSlot: highestDecidedSlot,
Copy link
Contributor

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

Copy link
Contributor Author

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?

Comment on lines 58 to 65
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()
}
Copy link
Contributor

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?

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

Choose a reason for hiding this comment

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

reference?

@alan-ssvlabs alan-ssvlabs marked this pull request as draft March 18, 2025 22:57
@alan-ssvlabs alan-ssvlabs marked this pull request as ready for review March 26, 2025 02:01
@github-actions
Copy link

This pull request has been marked as stale due to 60 days of inactivity.

@github-actions github-actions bot added the stale label Jul 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants