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

Use the delegation tree at the snapshot block #16

Open
asgeir-s opened this issue May 2, 2023 · 0 comments
Open

Use the delegation tree at the snapshot block #16

asgeir-s opened this issue May 2, 2023 · 0 comments
Assignees
Milestone

Comments

@asgeir-s
Copy link

asgeir-s commented May 2, 2023

Currently, we use the most up-to-date delegation sets when creating the delegation graph.

Instead, we should use the delegations that were active at the snapshot block.

For this, we need to select a "main chain" that we use for the snapshot block. For other networks, we will need to use the timestamp of the snapshot block (from the "main chain").

After this, the delegation graph for a specific snapshot (block number) should only need to be computed once (and cached for later retrievals).

This will force us to store a lot more information (one delegation graph for every proposal). Related issue: #17.

@asgeir-s asgeir-s added this to the v2 milestone May 2, 2023
@asgeir-s asgeir-s changed the title Use the delegation tree at the snapshot block ++ Use the delegation tree at the snapshot block May 3, 2023
@asgeir-s asgeir-s self-assigned this May 4, 2023
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

No branches or pull requests

1 participant