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

Add Error type to Membership trait #3801

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Add Error type to Membership trait #3801

merged 1 commit into from
Oct 25, 2024

Conversation

ss-es
Copy link
Contributor

@ss-es ss-es commented Oct 24, 2024

This PR:

We are making the implementation of the Membership trait for proof-of-stake the responsibility of the sequencer.

This PR allows the Membership trait to be implemented with a custom error type (via lookup_leader), rather than forcing the sequencer to use anyhow or our own internal error type.

This PR does not:

The goal was to make a minimal change here (i.e. not have to touch any code in task-impls), so I added a new method with a different name rather than changing leader

Key places to review:

Is there a better naming convention?

Copy link
Contributor

@tbro tbro left a comment

Choose a reason for hiding this comment

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

LGTM

@ss-es ss-es merged commit 01ea0ab into main Oct 25, 2024
25 checks passed
@ss-es ss-es deleted the ss/fix-membership branch October 25, 2024 15:31
@ss-es ss-es added this to the Stake table update (PoS) milestone Oct 25, 2024
@tbro
Copy link
Contributor

tbro commented Oct 29, 2024

#3726

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.

4 participants