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

Compute Stake Distribution for mainnet #880

Closed
3 tasks done
jpraynaud opened this issue Apr 27, 2023 · 0 comments
Closed
3 tasks done

Compute Stake Distribution for mainnet #880

jpraynaud opened this issue Apr 27, 2023 · 0 comments
Assignees
Labels
D-medium Difficulty: medium epic ⚔️ Epic that gathers related tasks mainnet-protocol 🚀 Protocol for mainnet

Comments

@jpraynaud
Copy link
Member

jpraynaud commented Apr 27, 2023

Issue

Use the new cardano-cli query stake-snapshot --all-stake-pools command to compute the stake distribution for mainnet.

🎉 New implementation in Cardano node 8.1.0 has fixed the performance issue

🔥 Previous implementation of this command has performance issues (Cardano node 8.0.0) that must be fixed before release by the Cardano node team: PR IntersectMBO/ouroboros-consensus#92 has been created to fix the problem

Note

This will fix the temporary implementation of the computation of the stake distribution (one pool id at a time) which is working on the preview and preprod network, but that took longer to compute than the duration of an epoch on the mainnet

To do

Later

  • Decommission previous version for computing the stake distribution

Note

  • Cardano node 1.35.x and 8.0.0 versions have 2 different interfaces for the result of the query stake-snapshot command
  • The query stake-snapshot command is used in the 2 methods of computation for the stake distribution in the Mithril nodes (legacy method is explained in this post)
  • An unmerged implementation of the Chain Observer with new command has been done in PR 🔥 Test mainnet setup  #782
@jpraynaud jpraynaud changed the title Use new cardano-cli stake distribution command Use new cardano-cli stake distribution command Apr 27, 2023
@jpraynaud jpraynaud added this to the Beta Release Mainnet milestone May 3, 2023
@jpraynaud jpraynaud added epic ⚔️ Epic that gathers related tasks and removed task labels May 5, 2023
@jpraynaud jpraynaud changed the title Use new cardano-cli stake distribution command Compute Stake Distribution for mainnet May 5, 2023
@jpraynaud jpraynaud self-assigned this May 10, 2023
@jpraynaud jpraynaud added the mainnet-infrastructure 🚀 Infrastructure for mainnet label May 11, 2023
@jpraynaud jpraynaud added mainnet-protocol 🚀 Protocol for mainnet and removed mainnet-infrastructure 🚀 Infrastructure for mainnet labels May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-medium Difficulty: medium epic ⚔️ Epic that gathers related tasks mainnet-protocol 🚀 Protocol for mainnet
Projects
None yet
Development

No branches or pull requests

1 participant