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

Fetch stake table #2237

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from
Draft

Fetch stake table #2237

wants to merge 20 commits into from

Conversation

tbro
Copy link
Contributor

@tbro tbro commented Oct 30, 2024

Closes EspressoSystems/HotShot#3726

This PR

Adds the ability to fetch stake table from l1. It adds StakeCommittee type which replaces StaticCommittee. This new type implements Membershp trait, holds L1Client and fn update_stake_table to update Self.stake_table. In this way, hotshot will be able to obtain StakeTable via SystemContextHandle.members.

TODO

The actual http request to l1 has yet to be implemented.

@tbro tbro force-pushed the tb/pos/fetch-stake-table branch 3 times, most recently from 9e37482 to 849cf06 Compare October 31, 2024 20:46
@tbro tbro changed the title Tb/pos/fetch stake table Fetch stake table Oct 31, 2024
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.

[EPOCH TRANSITION] - Membership trait has an additional method to fetch a stake table for a given epoch
1 participant