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

[Light Client] Update Prover Related Stake Table Logic #2581

Open
tbro opened this issue Feb 11, 2025 · 3 comments
Open

[Light Client] Update Prover Related Stake Table Logic #2581

tbro opened this issue Feb 11, 2025 · 3 comments
Assignees

Comments

@tbro
Copy link
Contributor

tbro commented Feb 11, 2025

prover-service retrieves stake table from a known node. Some logic will need to be updated for enabling epochs / proof of stake. Note that some prover functions are called from TestNetwork, deploy.rs and dev-node.

@tbro tbro self-assigned this Feb 11, 2025
@tbro tbro changed the title Update Stake Table in Prover Update Prover Related Stake Table Logic Feb 11, 2025
@mrain
Copy link
Contributor

mrain commented Feb 12, 2025

Required changes in prover service

  • Remove init_stake_table
  • Merge run_prover_service_with_stake_table and run_prover_service
  • Change the logic of run_prover_service to check the stake table from sequencer for every update.
    • sequencer should keep a epoch -> stake table map waiting to be queried
  • Better documentation

@mrain
Copy link
Contributor

mrain commented Feb 25, 2025

More discussions here: https://espresso.zulipchat.com/#narrow/channel/462904-eng-proof-of-stake/topic/prover.20service.20stake.20table.20update

We need to update the epoch transition logic as well:

  • Schnorr signatures will be included in the epoch QC as well to utilize the persistent storage. In this case, we can easily recover from failed prover-service/relay server during the epoch transition.
  • New logic for prover service: when it noticed an epoch transition, it goes to query service for the epoch QC that contains all the schnorr signatures and perform the epoch transition update first. We don't need to touch the relay server.

@mrain mrain changed the title Update Prover Related Stake Table Logic [Light Client] Update Prover Related Stake Table Logic Feb 25, 2025
@mrain
Copy link
Contributor

mrain commented Feb 25, 2025

Created 2 blocking sub-issues: #2684 and #2685

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants